11-24-2008 06:46 AM
I'm trying to 'put' back and resubscribe users to our list. I'm using a test email of mine for the time being, but keep getting a status 400 Bad Request.
Below is what I'm putting:
Update: Please see xml.txt attachment below. If someone could advise me how I can paste in XML code, I'd be very grateful :)
The headers I get back are:
=> 400 Bad Request
=> Mon, 24 Nov 2008 11:37:14 GMT
=> private, no-cache, no-cache="set-cookie,set-cookie2"
=> text/html; charset=ISO-8859-1
I'm able to subscribe new contacts, and unsubscribe perfectly. It's just when I try and let people resubscribe, I have problems.
11-24-2008 07:51 PM
In your XML file try to change
to: <entry xmlns="http://www.w3.org/2005/Atom">
So your Xml should look some thing like this
<title type="text">Contact: email@example.com</title>
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/US
If the contact you are trying to add is on the Do Not Mail List then
You can also "Remove" and Re-add Contacts. A contact that is Removed is valid in every way except they are not on any Contact Lists and thus they will not receive any emails.
To 'Remove' a contact, you simply update (PUT) their atom entry with an empty ContactLists tag.
They will not get any emails.
To 'Re-add' the contact, simply update (PUT) their entry back with the Contact List or Lists you want.
Mike C Support Engineer, Constant Contact