cancel
Showing results for 
Search instead for 
Did you mean: 
You deserve the best.
Beginning Saturday 2/15 we will be upgrading our phone system to ensure we are providing you with the best possible experience.
Due to this upgrade, we will be limited to Chat support only on Saturday from 10-8 pm ET.
On Monday, President's Day, we plan to have both Chat and Phone support available from 10-6 pm ET on the new system.
Thank you for your patience while we make these important updates.

Opt-Out Call using ASP

SOLVED
Occasional Advisor

Opt-Out Call using ASP

Is there a sample of an ASP call to opt-Out an email from a contact list? 

3 REPLIES 3
Highlighted
Moderator

Re: Opt-Out Call using ASP

Opting a customer out is just a DELETE HTTPS request against the Contact resource URI.  You would use similar code to this post, just change the request type to DELETE and don't send any content (DELETE request do not need content sent).

 

http://community.constantcontact.com/t5/Developer-Support-ask-questions/Add-a-Contact-Using-Classic-...

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Advisor

Re: Opt-Out Call using ASP

Nice, so I figured out how to do the Delete; however, it requires me to get the Contact ID of the contact I need to delete.  Is there a call that I can make if all I know is the person's email address to get the Contact ID?

Highlighted
Moderator

Re: Opt-Out Call using ASP

That would require a GET request using the format described in our Searching for a Contact by Email Address documentation.

Dave Berard
Senior Product Manager, Constant Contact