HubSpot / hubspot-api-php

HubSpot API PHP Client Libraries for V3 version of the API
Apache License 2.0
195 stars 82 forks source link

Leads support is missing? #375

Closed Modelizer closed 2 months ago

Modelizer commented 2 months ago

It is a bit difficult to understand how to utilize leads from the API client package. Nor, leads documentation is mentioned here: https://developers.hubspot.com/docs/api/crm/understanding-the-crm

If we go to https://developers.hubspot.com/docs/api/crm/leads leads documentation, it isn't clear enough how we can utilise in PHP package. For example, if we want to make a deal we use the code below

app(HubSpot\Discovery\Discovery::class)
    ->crm()
    ->deals()
    ->basicApi()
    ->create(
        new SimplePublicObjectInputForCreate($data)
    );

We aren't sure how we can do something similar with leads?

Modelizer commented 2 months ago

thanks! @atanasiuk-hubspot and @ksvirkou-hubspot, could you please keep me updated via this issue when the new version is released?

ksvirkou-hubspot commented 2 months ago

Hi @Modelizer I've just published it in version 11.2.0.

Modelizer commented 2 months ago

Thank you @ksvirkou-hubspot.

Although I notice enum types https://developers.hubspot.com/docs/api/crm/associations#lead-to-object for leads are missing from https://github.com/HubSpot/hubspot-api-php/blob/master/lib/Enums/AssociationTypes.php ?

ksvirkou-hubspot commented 2 months ago

https://packagist.org/packages/hubspot/api-client#11.3.0