How can i permanently delete a contact from Constant Contact using PHP SDK

ShashikantA0
Participant

How can i permanently delete a contact from Constant Contact using PHP SDK

I want to delete Contact from contact list using PHP SDK. 

1 REPLY 1
David_B.
Moderator

Hello,

You can pass a contact object through the updateContact() method to update which lists a contact is on. Removing them from all lists is the same as deleting the contact from the website UI: http://constantcontact.github.io/php-sdk/source-class-Ctct.Services.ContactService.html#175-205

If you are looking to remove a large number of contacts from list(s) you can use the activity addRemoveContactsFromListsActivity. http://constantcontact.github.io/php-sdk/source-class-Ctct.Services.ActivityService.html#182-213 -- you can also do this from a file as well: http://constantcontact.github.io/php-sdk/source-class-Ctct.Services.ActivityService.html#215-243

Please have a look and let me know if you have any questions!

Regards,
David Bornstein
Tier II API Support Engineer

Developer Portal

View API documentation, code samples, get your API key.

Visit Page