eCommerce Integration
The product and line item resources should be added as well.
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);
}
}
`
It's not in the latest 1.1.3, unless I'm missing something.
You are correct, product is missing as well.
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.
Added a start here:
https://github.com/shabananavas/hubspot-php/pull/1
Hi @shabananavas @audetcameron Products API is already done LineItem I will do tomorrow
Thanks @ksvirkou! Appreciate it.
Hi @shabananavas @audetcameron Products API is already done LineItem I will do tomorrow
very nice.
https://github.com/HubSpot/hubspot-php/pull/287
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