Search code examples
c#apicampaign-monitor

Quick way to find out if a user is subscribed to a list in Campaign Monitor API


Does anyone know if there is a way of checking a subscribers status on a list.

The only way I can see to do it is loop through the active and unsubscribed subscribers on a list and see if it matches. Obviously this is not very efficient if there are 10's of thousands of subscribers.

What I'm trying to do is have a form on a site that allows you to unsubscribe or subscribe to a mailing list. I'd like this to check Campaign Monitor to see which lists they are subscribed to and precheck those boxes.


Solution

  • Use Client.ListsForEmail to get all the lists for a given email address, and then once you have the lists you should be able to check the status of the subscriber in each of those