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.

Unable to retrieve email list related to Caimpaings

Highlighted
Occasional Contributor

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
Highlighted
Moderator

Re: Unable to retrieve email list related to Caimpaings

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

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