How to get list with their id.

SOLVED
Go to solution
ChrisC248
Regular Participant

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
Shannon_W
Employee

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
Shannon_W
Employee

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