Opt-Out Call using ASP

SOLVED
Go to solution
EverettG7
Regular Participant

Opt-Out Call using ASP

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

1 ACCEPTED SOLUTION
DaveBerard
Moderator

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

View solution in original post

3 REPLIES 3
DaveBerard
Moderator

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

View solution in original post

EverettG7
Regular Participant

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?

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
Developer Portal

View API documentation, code samples, get your API key.

Visit Page