GithubHelp home page GithubHelp logo

GDPR Delete not working about hubspot-api-php HOT 5 CLOSED

hubspot avatar hubspot commented on August 20, 2024
GDPR Delete not working

from hubspot-api-php.

Comments (5)

ksvirkou-hubspot avatar ksvirkou-hubspot commented on August 20, 2024

Hi @chumanfu
this API in beta and it isn't work on API side

from hubspot-api-php.

chumanfu avatar chumanfu commented on August 20, 2024

@ksvirkou-hubspot
Thanks for you reply.
It looks like the the API is now in GA

https://developers.hubspot.com/changelog/new-v3-engagement-apis-in-beta-and-contacts-gdpr-delete-endpoint-moves-to-general-availability

When will the SDK be fix?
Is there a way of raising a PR to fix it?

from hubspot-api-php.

ksvirkou-hubspot avatar ksvirkou-hubspot commented on August 20, 2024

@chumanfu
Could you check the latest version, please?

from hubspot-api-php.

chumanfu avatar chumanfu commented on August 20, 2024

This is still not working. As stated previously the construct to GDPRApi is being passed with no parameters in HubSpot\Discovery\Crm\Contacts\Discovery.

return new GDPRApi();

Can this issue be re-opened until this is fixed please?

When will this be fixed?

from hubspot-api-php.

ksvirkou-hubspot avatar ksvirkou-hubspot commented on August 20, 2024

Hi @chumanfu
Workable example for the latest version of SDK

use HubSpot\Factory;
use HubSpot\Client\Crm\Contacts\Model\PublicGdprDeleteInput;
$hubSpot = Factory::createWithApiKey('*');

$contactInput = new PublicGdprDeleteInput();
$contactInput->setObjectId('[email protected]');
$contactInput->setIdProperty('email');

$contact = $hubSpot->crm()->contacts()->gdprApi()->purge($contactInput);

Thank you for issue

from hubspot-api-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.