When I am trying to export hundreds of contacts to the api, it is only exporting 50 contacts. Please help me how to export all contacts.
Our API system is designed so that it always returns the first 50 items when performing a GET call. In order to receive the next 50 items, you need to page through all the remaining pages by constructing the URI for the next page using the value in <link> element with attribute rel="next".
If you have any questions about this, please let me know.
Thanks for your reply Ben. I am not getting contacts from constant contacts but trying to add contacts. Can you please tell me how to handle adding morethan 50 contacts at a time?
The contacts collection can be used to add a single contact, but if you are looking to add approximately 25+ contacts, you would want to use a bulk add/import functionality. This will allow you to add up to 20,000 contacts at a time using an application/x-www-urlencoded request or a multipart/form-data request. I hope this helps. Please let us know if you have any other questions or concerns regarding this issue. Thanks.