Allow sequential API get requests for event list greater than 500

SOLVED
Highlighted
Occasional Contributor

Allow sequential API get requests for event list greater than 500

I am unable to retrieve some new events being added (all of which begin with alphabet letters U-Z), since the API GET limit is 500.  Obviously, I am unable to determine how many events I actually have stored, but the PHP 'count($events->results)' is exactly 500 (which explains why some events are missing). 

Since 500 is the limit to optimize back-end data retrieval, is there a way to run sequential API GET requests to retrieve the next 500 events (501-1000)?  If not, can Constant Contact archive events from 6 years ago (which are included in the 500 being retrieved) so new events are available.  Incidentally, this problem only exists with the REST API (which I use to create workshop sign-in sheets).  The Constant Contact website widgets show all the new events just fine.

Tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Allow sequential API get requests for event list greater than 500

Follow-up.  My original PHP code included a pagination loop, but I had made a small error in concatenating the URL for the "next=" loop.  The problem showed up when the workshop count exceeded 500, but it is fixed now.

View solution in original post

1 REPLY 1
Highlighted
Occasional Contributor

Re: Allow sequential API get requests for event list greater than 500

Follow-up.  My original PHP code included a pagination loop, but I had made a small error in concatenating the URL for the "next=" loop.  The problem showed up when the workshop count exceeded 500, but it is fixed now.

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Register for our "Making Sense of Online Marketing for Education" Webinar

Join us on Thursday, August 27th at 2pm ET for a free one-hour webinar where we will be covering how to incorporate online marketing into your educational marketing strategy.

Read More
Featured