- Constant Contact Community
- :
- Developer Community
- :
- API Enhancement Requests
- :
- Re: /lists/{list-id}/members
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
/lists/{li st-id}/mem bers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-29-2011 03:37 PM
Hello,
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
'/lists/{list-id}/members/CustomField1'
which would then return
<feed xmlns="http://www.w3.org/2005/Atom"> <id>http://api.constantcontact.com/ws/customers/{}/lists/24/members</id> <title type="text">Contacts for Customer: {}</title> <link href="members"></link> <link href="members" rel="self"></link> <author> <name>{}</name> </author> <updated>2011-11-29T20:16:36.956Z</updated> <link href="/ws/customers/{}/lists/24/members" rel="first"></link> <link href="/ws/customers/{}/lists/24/members" rel="current"></link> <entry> <link href="/ws/customers/{}/contacts/7" rel="edit"></link> <id>http://api.constantcontact.com/ws/customers/{}/con tacts/7</id> <title type="text">Contact: {}</title> <updated>2011-11-29T20:16:37.396Z</updated> <author> <name>Constant Contact</name> </author> <content type="application/vnd.ctct+xml"> <ContactListMember xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/{}/con tacts/7"> <EmailAddress> </EmailAddress> <Name> </Name> <CustomField1>2</CustomField1> </ContactListMember> </content> </entry> </feed>
Thanks.
Re: /lists/{li st-id}/mem bers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-29-2011 04:50 PM
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.
Product Manager, Constant Contact
Re: /lists/{li st-id}/mem bers
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-30-2011 02:43 AM
This post has been removed or reported as abuse by another community member.


