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.
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.
You can post a new message in the Community or find us on Twitter Mon-Fri 8am-8pm ET, Sat 10am-8pm ET, & Sun 10am-6pm ET. We've got real people waiting to help you out. Click below to start a conversation!