Constant Contact provides API's that allow you to get details of email campaigns, to create an email campaign based on custom HTML code, and to update details of email campaigns. You can get a list of campaigns, and query individual campaigns to get more details for each one.
An active contact belongs to one or more contact lists, and there are two ways to manage subscriptions of contact lists. To manage a particular contact's subscriptions, you have to modify the contact information directly. Each contact's information contains a list of contact lists to which the contact has subscribed, and by modifying this list, you can manage the contact's list subscriptions.
Contact lists are at the heart of the Constant Contact data model. The Constant Contact REST API provides developers with several method to work with contact lists, enabling list creation, list reading and list updating.
The Constant Contact APIs allow you to manage contacts in your account in various ways. By utilizing contacts collection and resource, you can add, edit, unsubscribe contacts as well as modify their contact list memberships.
The contact list subscriptions are described in <ContactLists> element of a contact's details. Each contact list to which the contact has subscribed is described in <ContactList> element inside <ContactLists>.
To remove a contact from all lists, you need to start with the contact's detail data and simply remove all of the <ContactList> elements from the <ContactLists> element, and issue the PUT method on the contact resource.
Contacts who have opted out of receiving all mails and have been placed on Do-Not-Mail list must opt themselves in. The account owner cannot add a contact in Do-Not-Mail list back to a different list. The action must be initiated by the contact.