webservices

Account Email Addresses Collection

by Administrator on ‎03-25-2011 10:05 AM

The account settings email address collection and resource allows you to retrieve a list of registered email addresses on your account as specified in the Settings in the UI. These email addresses are used in conjunction with campaign resource to specify From Email and Reply To email addresses.

 

To learn more about how to use email address collectino and resource, refer to Retrieving Account Email Addresses.

 

The email addresses collection gives you a list of email addresses you registered with your account in the Settings.  Each <entry> represents an email address and gives you a summary of each email address.

 

Request Format

 

GET https://api.constantcontact.com/ws/customers/{user-name}/settings/emailaddresses

 

Response Format

 

<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>http://api.constantcontact.com/ws/customers/joesflowers/settings/emailaddresses</id>
<title type="text" />
<link href="http://api.constantcontact.com/ws/customers/joesflowers/settings/emailaddresses" />
<link href="http://api.constantcontact.com/ws/customers/joesflowers/settings/emailaddresses" rel="self" />
<author>
<name>joesflowers</name>
</author>
<updated>2009-10-01T20:18:22.775Z</updated>
<entry>
<link href="/ws/customers/joesflowers/settings/emailaddresses/1" rel="edit" />
<id>http://api.constantcontact.com/ws/customers/joesflowers/settings/emailaddresses/1</id>
<title type="text">joesflowers@example.com</title>
<updated>2009-05-21T17:44:04.609Z</updated>
<author>
<name>Constant Contact</name>
</author>
<content type="application/vnd.ctct+xml">
<Email xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.
com/ws/customers/joesflowers/settings/emailaddresses/1">
<EmailAddress>joesflowers@example.com</EmailAddress>
<Status>Verified</Status>
<VerifiedTime>2009-05-21T17:44:04.609Z</VerifiedTime>
</Email>
</content>
</entry>
<entry>
<link href="/ws/customers/joesflowers/settings/emailaddresses/2" rel="edit" />
<id>http://api.constantcontact.com/ws/customers/joesflowers/settings/emailaddresses/2</id>
<title type="text">joesflowers2@example.com</title>
<updated>2009-09-02T13:27:36.552Z</updated>
<author>
<name>Constant Contact</name>
</author>
<content type="application/vnd.ctct+xml">
<Email xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.
com/ws/customers/joesflowers/settings/emailaddresses/2">
<EmailAddress>joesflowers2@example.com</EmailAddress>
<Status>Pending</Status>
</Email>
</content>
</entry>
</feed>

Each <entry> represents an email address registered with the account.  Its unique ID is givein in <id> element while the link to get more of its detail is given in <link> element with rel attribute of "edit".