- Constant Contact Community
- :
- Developer Community
- :
- Getting Started with API's
- :
- Re: Setting contact status via API
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Setting contact status via API
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-30-2011 11:21 AM
It appears that ANY update to a contact via the API sets their status to active. I have tried this with a loaded <ContactList> and with an empty <ContactList> and regardless the contact is set to active. I have changed the status to removed via the console then run this and it goes back to active. I doubt it makes a difference but I'm using Coldfusion.
<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <title type="text"> </title> <updated>2011-12-30T10:07:35:972Z</updated> <author/> <id>http://api.constantcontact.com/ws/customers/CONTACTLOGIN/contacts/1</id> <summary type="text">Contact</summary> <content type="application/vnd.ctct+xml"> <Contact xmlns="http://ws.constantcontact.com/ns/1.0/"> <Status>Removed</Status> <EmailAddress>someone@mycompany.net</EmailAddress> <EmailType/> <FirstName>Shawn</FirstName> <MiddleName/> <LastName>McKee</LastName> <JobTitle/> <CompanyName/> <WorkPhone/> <HomePhone/> <Addr1/> <Addr2/> <Addr3/> <City/> <OptInSource>ACTION_BY_CUSTOMER</OptInSource> <StateCode/> <StateName/> <CountryCode>US</CountryCode> <PostalCode/> <SubPostalCode/> <CustomField1/> <CustomField2/> <CustomField3/> <CustomField4/> <CustomField5/> <CustomField6/> <CustomField7/> <CustomField8/> <CustomField9/> <CustomField10/> <CustomField11/> <CustomField12/> <CustomField13/> <CustomField14/> <CustomField15/> <Note/> <OptInSource>ACTION_BY_CUSTOMER</OptInSource> <ContactLists> <ContactList id="https://api.constantcontact.com/ws/customers/smcke efair/lists/1"/> </ContactLists> </Contact> </content> </entry>
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-30-2011 04:38 PM
Further investigation makes it seem like the real problem is that the BP UI is slow to catch up with changes made via the API. I am now getting consistent results from the API but they are not refleceted in the contact UI.
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-30-2011 05:05 PM
Hey,
Which status where you trying to change it to? If you are sending the changed status with an active contact list it would send it back to active. If you were changing it to do not mail, then you would just do a delete, instead of a PUT.
Support Engineer, Constant Contact
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-30-2011 05:11 PM
At the moment I'm trying to flip them back and forth between active and removed for a given list. It seems to be working but the portal UI seems to be slow to see the updates. Not important now that I have figured that out.
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2012 04:55 PM
When you view a list in our Constant Contact UI, the list is cached on the server to improve performance. Typically, the caching lasts only 5-10 minutes and you would not notice these types of "delays". If you are looking for the data update to reflect immediately, you can log out of your account and back in after the API update. This should clear the server cache since your session will end when you click Log Out.
Hope this helps.
Product Manager, Constant Contact
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2012 05:07 PM
Thanks, that is what I had surmised and it makes total sense. As long as my API calls reflect the last status set I'm fine.
Shawn
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 01:53 AM
Hi Ryan,
I can able to sync the "DonotMail" contacts from Constant contact to Salesforce Object using API.
While working with this api call, i can get only the contacts which are available in "DonotMail" list.
My Question is,
How Can we retrieve the Active Contacts using API?
Thanks
Re: Setting contact status via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2012 09:48 AM
Active contacts are available through a similar system list as Do Not Mail:
https://api.constantcontact.com/ws/customers/{user
Product Manager, Constant Contact


