--1. Get your Developer API key. The Developer API key identifies the person or organization who built the application. It is confidential information and should not be shared with your application end users.
--2. Find out which APIs exist. See this reference.
--3. Construct your access credentials. Your access credentials are constructed from the Developer API Key, the Constant Contact login name for the data you want to access and the Constant Contact password for that Constant Contact user. The API Username is a concatenation of your API User Key, the "%" character and the Constant Contact login name like so: {API Key}%{UserName}
--4. Reference the top level document for your domain. In many cases this may be the service description, which is held here: https://api.constantcontact.com/ws/customers/{UserName}/
where {UserName}/ is the user name of the Constant Contact account holder.
--5. Navigate the response document to get a reference to the next level of details.
RESTClient is a great tool to test your XML and the way you are using Constant Contact APIs. It gives you a simple way to test individual calls outside of your program to check if you are calling APIs correctly, and if not, it provides detailed error messages that the server returns. We created a user guide to help you use this helpful tool.
Constant Contact supports several APIs. While the APIs can be combined as needed, the capabilities, usage model and limitations of the APIs vary. For an overview of the available Constant Contact APIs, see this page.
There are a number of things you might want to know about the API, including:
Content-type will also cause a 500 error (Issues: 27633 and 28337). A Contacts Collection GET which uses the email query parameter will generally return a 500 (rather than an empty set), when the email address provided does not exist.Updated Tag Contents Issue: The Updated (last updated field) property for all resources always returns a new date, rather than the true last updated value for that resource (Issue: 25261)Contact List Does Not Exist Issue: When a Contact is Added to a Contact List that is not included on the Signup form for the Account Owner, the Contact entry must include the <OptInSource>ACTION_BY_CUSTOMER</OptInSource> tag within the Contact part of the entry (in addition to being required within the ContactList parts of that same entry).