Due to an issue with YouTube, inserting videos in your emails is showing an error. Until they are able to resolve this issue, we recommend using a different video hosting service. We will continue to monitor this outage and update you as we have more information.
|
First, download and install the RESTClient from the following URL:
http://rest-client.googlecode.com/
Next, we need to set up the authentication information. On "Auth" tab, check "BASIC" and uncheck "Preemptive".
For "Username", enter {API KEY}%{Constant Contact username}. For "Password", enter your Constant Contact password.
You will mostly work with "Method", "Headers" and "Body" tabs. Choose the appropriate method on "Method" tab.
If you are using a GET method, then you don't need to use "Headers"
or "Body" tab. If you are using a PUT or a POST, then put your XML in
"Body" tab and add application/atom+xml
as "Content-Type" header on "Headers" tab. If you are trying to run a
GET method followed by PUT or POST, you do not need to delete the
contents of "Headers" and "Body" tabs. They will be promptly ignored.
In URL, enter your API call like the following:
https://api.constantcontact.com/ws/customers/{username}/lists
Don't forget to use "https" instead of "http".
All examples assume your {username} is testuser
.
https://api.constantcontact.com/ws/customers/testuser/contacts
Content-Type
as "Key" and application/atom+xml
as "Value" and hit the plus button to add it.
On "Body" tab, enter your XML entry for the new contact list
<entry xmlns="http://www.w3.org/2005/Atom">
<id>data:,</id>
<title/>
<author/>
<updated>2008-04-16</updated>
<content type="application/vnd.ctct+xml">
<ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">
<OptInDefault>false</OptInDefault>
<Name>A New List</Name>
<SortOrder>99</SortOrder>
</ContactList>
</content>
</entry>
https://api.constantcontact.com/ws/customers/testuser/lists