cancel
Showing results for 
Search instead for 
Did you mean: 

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
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?

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