I'm getting a 400 error with this xml conent
<?xml version="1.0" encoding="utf-16"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<title> </title>
<updated>2008-07-23T14:21:06.407Z</updated>
<author />
<id>http://constantcontact.com</id>
<summary type="text">Contact</summary>
<content type="application/atom+xml">
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/">
<EmailAddress>martineztek@gmail.com</EmailAddress>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
<ContactLists>
<ContactList id="http://api.constantcontact.com/ws/customers/martineztek/lists/1" />
</ContactLists>
</Contact>
</content>
</entry>
Any thoughts as to why I'm getting this? Thanks!
I was able to successfully
I was able to successfully add a contact to my account using your exact XML minus the very first line (and changing the Username in the List URI to my account). XML Document version is not required for API XML files, the content type is actually provided in the request headers themselves.
Dave B Support Engineer, Constant Contact