hubspot-php icon indicating copy to clipboard operation
hubspot-php copied to clipboard

eCommerce Integration

Open shabananavas opened this issue 7 years ago • 10 comments

The product and line item resources should be added as well.

shabananavas avatar Mar 11 '19 14:03 shabananavas

Is lineItems completely gone? I had it in v1.1.2 ` namespace SevenShores\Hubspot\Resources;

use SevenShores\Hubspot\Exceptions\HubspotException;

class LineItems extends Resource { /** * @param array $line_item Array of deal properties. * @return mixed * @throws HubSpotException */ function create(array $line_item) { $endpoint = "https://api.hubapi.com/crm-objects/v1/objects/line_items";

    $options['json'] = $line_item;

    return $this->client->request('post', $endpoint, $options);
}

}

`

audetcameron avatar Mar 21 '19 16:03 audetcameron

It's not in the latest 1.1.3, unless I'm missing something.

shabananavas avatar Mar 21 '19 17:03 shabananavas

You are correct, product is missing as well.

audetcameron avatar Mar 21 '19 19:03 audetcameron

I've now looked through pretty much all the releases and none of them have the Product or LineItem Resources. If it doesn't exist, then, we could start work on it.

shabananavas avatar Mar 22 '19 10:03 shabananavas

Added a start here:

https://github.com/shabananavas/hubspot-php/pull/1

shabananavas avatar Mar 25 '19 12:03 shabananavas

Hi @shabananavas @audetcameron Products API is already done LineItem I will do tomorrow

ksvirkou-hubspot avatar Jan 14 '20 11:01 ksvirkou-hubspot

Thanks @ksvirkou! Appreciate it.

shabananavas avatar Jan 14 '20 12:01 shabananavas

Hi @shabananavas @audetcameron Products API is already done LineItem I will do tomorrow

very nice.

audetcameron avatar Jan 14 '20 14:01 audetcameron

https://github.com/HubSpot/hubspot-php/pull/287

ksvirkou-hubspot avatar Jan 15 '20 12:01 ksvirkou-hubspot

Hi @shabananavas and @audetcameron Products and LineItem API are already done But for using it you have to it update to v2.0.3 if you have any questions create a new issue

ksvirkou-hubspot avatar Jan 15 '20 12:01 ksvirkou-hubspot