Hi All,
I am trying to add new contact into Contact List through using c# sample code. I am able to get Contact list and when i try to add new contact into existing optin list then it throw error "The remote server returned an error: (400) Bad Request"
Here is the request which i am sending it
<entry xmlns="http://www.w3.org/2005/Atom">
<title type="text" />
<updated>2008-07-23T14:21:06.407Z</updated>
<author />
<id>data:,none</id>
<summary type="text">Contact</summary>
<content type="application/vnd.ctct+xml">
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/">
<EmailAddress>sds@yahoo.com</EmailAddress>
<FirstName />
<MiddleName />
<LastName />
<HomePhone />
<Addr1 />
<Addr2 />
<Addr3 />
<City />
<StateCode />
<StateName />
<PostalCode />
<SubPostalCode />
<CountryCode />
<CompanyName />
<JobTitle />
<WorkPhone />
<EmailType>HTML</EmailType>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
<Note />
<CustomField1 />
<CustomField2 />
<CustomField3 />
<CustomField4 />
<CustomField5 />
<CustomField6 />
<CustomField7 />
<CustomField8 />
<CustomField9 />
<CustomField10 />
<CustomField11 />
<CustomField12 />
<CustomField13 />
<CustomField14 />
<CustomField15 />
<ContactLists>
<ContactList id="http://api.constantcontact.com/ws/customers/AcuityTest/lists/Acuity Contact List" />
</ContactLists>
</Contact>
</content>
</entry>
Please let me know what is the issue?
Thanks
Acuity Team
... View more