I use the put method is to update emails from the list, it is updated, i also need to delete the email from a particular list. I ddnt use the list that the contact is deleted in the contactlist, but it is not deleted from the list. Can you give me a solution
I understand how to do a deletion, but I don't know where I should get the URI for the contact to delete. Because I'm dealing with more than 25 contacts, I'm using the bulk operations, and those do not (as far as I can tell) return the URI for each contact, so I don't have the contact URI in my database.
An example of the XML used to update a contact is as follows:
<title type="text">Contact: email@example.com</title>
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/
More information can be found in the API Documentation.
Support Engineer, Constant Contact
The best way to get the Contact URI when dealing with Exports through the Bulk Activities collection is to do a query on the Contacts collection with the few email addresses you want to delete. The responding XML will contain the URI for that contact which you can then send a delete back on to move them to Do Not Mail.