Remove a Contact from a List after the Email has been sent using API?
Fri, 10/16/2009 - 20:02 — techiewaves
I want to remove the contact from a list after the email has been sent to that contact. I can update the contact to remove from lists. but how do I remove from the list after knowing that the email has been sent to it.
You could use the campaign
You could use the campaign and event collections to check if the email was sent to a specific user. You would need to get the campaign ID: http://developer.constantcontact.com/doc/campaign
Then from that you can get a list of the users that have been sent your email:
http://developer.constantcontact.com/doc/contactEvents
If you loop them you can then run a DELETE command on each one using the contacts collection:
http://developer.constantcontact.com/doc/contactsCollection
Hope that helps.
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/