The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Opt-Out Call using ASP

SOLVED
Go to solution
Highlighted
Occasional Advisor

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

Accepted Solutions
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

View solution in original post

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

View solution in original post

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

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured