Dim sUri As String = "http://api.constantcontact.com/ws/customers/" & sUsername & "/activities"
What is the correct URI for the POST for adding a contact? The documentation said the collection uri...so I'm using
https://api.constantcontact.com/ws/customers/" + UserName + "/contacts"I'm also getting the 400 Bad Request Error....I did track down that a valid list ID is 52 and made that change.
Any help would be appreciated...btw I'm using c#.net
You are posting to the correct URI and provided that your list ID is valid, you may just have a formatting error in your XML. The cause of the 400 error could be as simple as missing a required node. If you would like to post or email me the xml that is being submitted I would be happy to see if there are any errors.
Might I also recommend using the RESTClient to troubleshoot your XML and isolate the issue to either your program code, or the XML.
Support Engineer, Constant Contact
View API documentation, code samples, get your API key.Visit Page
We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...Read More