Between 8:00 - 9:00 am ET on 10/25 we need to take our site down to make updates. We recommend logging out before 8:00am ET and not using your account during this time. Thank you for your patience while we make these important updates.

Unable to retrieve email list related to Caimpaings

Regular Participant

Unable to retrieve email list related to Caimpaings

 

Hi,

 

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

1 REPLY 1
Moderator

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