cancel
Showing results for 
Search instead for 
Did you mean: 

How to get list with their id.

SOLVED
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 REPLY 1
Highlighted
CTCT 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