We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Unable to retrieve email list related to Caimpaings

Regular Participant

Unable to retrieve email list related to Caimpaings




I have retrieved the Caimpaings, now I am trying to get retrieve the email list related to it


eg: /ws/customers/<customerid>/lists/33


Could anyone guide me how can i retrieve this list related to particular caimpaings using PHP.


Thanks & Regards,

Osama Ahmed Momin


You can pull the members of that particular list in two options:


1. Real time - in a paginated collection of 50 contacts per request, you can get the members by using the endpoint /ws/customers/{username}/lists/{list_id}/members: http://community.constantcontact.com/t5/Documentation/Contact-List-Members-Collection/ba-p/25093

2. Asyncronously - in a batch job which is processed asyncronously, you can pull a CSV of the list members and any additional information you may want using our bulk activities collection: http://community.constantcontact.com/t5/Documentation/Creating-an-Export-Contacts-Activity/ba-p/2503...


Both of these options are included in the PHP Wrapper Library on our Github page: http://www.github.com/constantcontact.  Hope this helps!

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page