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.

Getting contacts in multiple lists in single call

Highlighted
Occasional Contributor

Getting contacts in multiple lists in single call

Hi Ryan & Dave,

 

Like the way we have option to get contacts present in the single list using getListMembers($List).

 

Is there any way of getting contacts present in multiple lists in single API call passing multiple lists at a time, instead of passing each list and getting contacts present in it.

 

Thanks,

Harika

 

 

2 REPLIES 2
Highlighted
Employee

Re: Getting contacts in multiple lists in single call

Hey,

 

That information would require a call to each individual contact ID and to compare the ContactLists->ContactList node.  In our PHP wrapper it will return an array.  So to answer your question, there is no way to do a single call to pull contacts who share multiple lists.

 

It is a great idea however and I will definitely list it as a possible feature enhancement.

Ryan Davis
Quality Engineer
Highlighted
Occasional Contributor

Re: Getting contacts in multiple lists in single call

Thanks Ryan, answers my question.

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