How to unsubscribe user from only one list?

SOLVED
Highlighted
Occasional Contributor

How to unsubscribe user from only one list?

Is it possible to unsubscribe a user's email address from just one list.

 

For example:

We have 10 lists and the user's email address is subscribed to 3 of them. We have the user's email and now through the API we want to unsubscribe them from off one of the email list but keep them subscribed to the other two.

1 ACCEPTED SOLUTION

Accepted Solutions
Regular Advisor

Re: How to unsubscribe user from only one list?

Hello,

 

You can accomplish this with two API calls.  First, you make a GET to the Contacts Collection API, doc located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=GET

 

You provide the email address as an additional parameter, and get the contacts information back.  You also now have the Contact's unique id, so you can perform a PUT to the Individual Contact after changing the lists.  The doc on that is located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

That will allow you to update the lists a contact is subscribed to.  Hope the information helps.

 

Andrew B.

Constant Contact

API Support

View solution in original post

1 REPLY 1
Regular Advisor

Re: How to unsubscribe user from only one list?

Hello,

 

You can accomplish this with two API calls.  First, you make a GET to the Contacts Collection API, doc located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=GET

 

You provide the email address as an additional parameter, and get the contacts information back.  You also now have the Contact's unique id, so you can perform a PUT to the Individual Contact after changing the lists.  The doc on that is located here:

 

http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT

 

That will allow you to update the lists a contact is subscribed to.  Hope the information helps.

 

Andrew B.

Constant Contact

API Support

View solution in original post

Developer Portal

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