cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.

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!

 

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!

 

 

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