The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

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

Highlighted
Visitor

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
Highlighted
Moderator

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

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured