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.


Occasional Contributor




I have an application wherein I need to sum the value of a custom field for every member of a particular list. 


I can certainly get the members of the list in question and in turn make the subsequent '/contacts/{contact-id}' call to fetch the value of the custom field, but that's a whole lot of network traffic.


Is there anyway to supplement the information returned by the '/lists/{list-id}/members' call to bring back a specified custom field in order to avoid potentially hundreds of URL calls?


I'm thinking something along the lines of




which would then return 


<feed xmlns="">
  <title type="text">Contacts for Customer: {}</title>
  <link href="members"></link>
  <link href="members" rel="self"></link>
  <link href="/ws/customers/{}/lists/24/members" rel="first"></link>
  <link href="/ws/customers/{}/lists/24/members" rel="current"></link>
    <link href="/ws/customers/{}/contacts/7" rel="edit"></link>
    <title type="text">Contact: {}</title>
      <name>Constant Contact</name>
    <content type="application/vnd.ctct+xml">
      <ContactListMember xmlns="" id="{}/contacts/7">
        <EmailAddress> </EmailAddress>
        <Name> </Name>






Re: /lists/{list-id}/members

Thanks for the feedback on the API.  Summary data on the collections like /{list-id}/members is something we've looked at a couple of times internally.  I'll bring the feedback to the team and make sure we look it over again.  It is unlikely we'll make an update that will allow only specific fields to be returned, but it's possible next year we'll modify the returned content to provide more information on individual contacts in these list type collections.

Dave Berard
Senior Product Manager, Constant Contact
Occasional Participant

Re: /lists/{list-id}/members



I'm having trouble figuring out how to list the contacts of a particular list. I've tried to modify the examples for other tasks, but still get hung up using getListDetails().


I'm authorizing with the oauth2 construct, and that appears to work properly. I'm able to get results from $ConstantContact->getLists(), but what I really need is the results of $ConstantContact->getListDetails("some-list-id"). When I attempt this, though, I'm apparently using a string and not an object, so I get failures.


Any help would be greatly appreciated!




Honored Contributor

Re: /lists/{list-id}/members

This post has been removed or reported as abuse by another community member.

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