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.

How to get list with their id.

SOLVED
Go to solution
Highlighted
Occasional Advisor

How to get list with their id.

Hi,

 

I just fetch the list the campaign is send to. Now I knew that campaign is send to which list and now if i want to know the contacts in it there is no process right???

because i only get the list url.

So how can i get listmembers through their ID???

You got me what m trying to explain?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Employee

Re: How to get list with their id.

Hi,

 

Yes, you want to find the members of a particular list in your account, right?

 

You can use the list ID and fetch the members in it by making a GET request to a url like below.  Just replace the username with your own and the list ID with the list in question.  (The list ID should be a number.)

 

https://api.constantcontact.com/ws/customers/username/lists/list_ID/members

 

You can also do a GET on the campaign URI as below to get the contacts who were sent the email:

 

https://api.constantcontact.com/ws/customers/username/campaigns/campaign_id/events/sends

 

I hope that helps!

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

1 REPLY 1
Highlighted
Employee

Re: How to get list with their id.

Hi,

 

Yes, you want to find the members of a particular list in your account, right?

 

You can use the list ID and fetch the members in it by making a GET request to a url like below.  Just replace the username with your own and the list ID with the list in question.  (The list ID should be a number.)

 

https://api.constantcontact.com/ws/customers/username/lists/list_ID/members

 

You can also do a GET on the campaign URI as below to get the contacts who were sent the email:

 

https://api.constantcontact.com/ws/customers/username/campaigns/campaign_id/events/sends

 

I hope that helps!

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

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