Events API SDK

Highlighted
Occasional Participant

Events API SDK

I'm working with the php-sdk from github and there are no events services. Are these missing? Has someone extended the Ctct object to include events services?

4 REPLIES 4
Highlighted
Moderator

Re: Events API SDK

Spoke with our developer who volunteers to update the PHP SDK.  He hasn't had time to add the Event endpoints to the PHP SDK yet due to other work he has on his plate.  Will see if we can get those added soon. 

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Participant

Re: Events API SDK

Thanks Dave. In the meantime I have been trying to use the SDK as a model (i'm kind of new to php). I can query and event and I do get back information but the parameters do not match what's in the api guide. In particular I'm looking to take action based on the number of registrants and the GET is supposed to return a parameter 'total_registered_count'.  Neither my call nor the sample call in the mashery return this paramter.

 

Am I not doing something correctly or is the information truncated because I'm using a trial account?

Highlighted
Honored Contributor

Re: Events API SDK

After investigating this issue you are running into it appears that the information for total event registrants is not currently being included in the API response, even on the two endpoints where it is documented to do so. We will be investigating this issue further to find the cause and then get a fix implemented.

 

There is a workaround that can be used to get the registrant count for an event until we are able to address this. That workaround requires you to request the list of registrants for an event, count the number present, request the next page if there is pagination, and continue counting. Pagination will be present when the number of contacts exceeds the limit parameter for the request, which defaults to 50.

 

You can find the documentation for the event registrants collection here: http://developer.constantcontact.com/docs/eventspot-apis/event-registrants-collection.html

 

I do want to apologize for the difficulty that this is causing. If you have any questions about the issue or about the workaround, please feel free to reply to this post.

 

Best Regards

Elijah G.
API Support Engineer
Highlighted
Occasional Participant

Re: Events API SDK

Thanks, Elijah!

Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured