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.

NOt all active events are getting displayed using API

Highlighted
Occasional Visitor

NOt all active events are getting displayed using API

Hi

We are using events APIs to get all active events on constant contact.
The get_events() function seems to be working as it does return list of events but not all the vents are getting reflected in the
response received. An example is the "Adult CPR/First Aid/AED and Pediatric CPR/First Aid - (Richmond) 8/8" event scheduled for August 8.

Tags (3)
4 REPLIES 4
Highlighted
Honored Contributor

Re: NOt all active events are getting displayed using API

Hello @NHSSRichmond 

 

I apologize for the difficulty you were having this morning with your Event and the API. We were experiencing UI Slowness and Bad Gateway errors that were more than likely the cause of this. This has since been resolved.

 

If you find you are still having difficutly, please let us know.

 

Thank you for your patience and I apologize for any inconvenience.

Highlighted
Occasional Visitor

Re: NOt all active events are getting displayed using API

Hi Marissa,

 

Thanks for the update. We are still not seeing all of the events.

 

Thanks!

 

Highlighted
Honored Contributor

Re: NOt all active events are getting displayed using API

Thanks for letting us know! I took a look at your account and since this is API related, I've moved your post over to our Developer Community and our API Specialists will be able to help you here!

 

 

Highlighted
Honored Contributor

Re: NOt all active events are getting displayed using API

Hello,

 

I have done some additional research into this, and it appears that the reason your events are not all showing is because you have a total of 51 active events. The Constant Contact API makes use of pagination with the results returned when there are more than 50 results in a set. In your case, it appears that your application is not expecting a second set of results, and not requesting the next page. Because it is not requesting the second page of results, each event past the 50th is not showing in the results you get.

 

You can find an explanation of paging in our V1 APIs here: https://community.constantcontact.com/t5/Documentation/Atom/ba-p/25071

 

Please let me know if you have any questions!

 

Sincerely,

Elijah G.
API Support Engineer
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
Featured