How can we retrieve the next 10 upcoming events from CC in C# or VB.Net? I do not see a method of doing this using the current API.
I'd like to list the next 10 upcoming events on my website with links back to CC.
Hi Steve,
We don't specifically have an example of how to do this in VB or C# (although the getEvents method is included in our .net SDK, and you could use that method).
The raw documentation for how to do that is here. You could use the limit parameter to limit the number of events returned through the API to 10. The request you send the API would look like this:
(GET) https://api.constantcontact.com/v2/eventspot/events?api_key=xxxx&limit=10 Headers: Authorization: Bearer <your_access_token> Content-type: application/json
Best Regards,
Shannon Wallace
Partner API Support Engineer
How does the API return 10? In order they were created or in upcoming dates?
Hi Steve,
The events are returned based on the times they were last edited, with the most recently edited event returned first.
Best Regards,
Shannon Wallace
Partner API Support Engineer