How can we retrieve the next 10 upcoming events from CC in C# or VB.Net?

Highlighted
Occasional Visitor

How can we retrieve the next 10 upcoming events from CC in C# or VB.Net?

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.

3 REPLIES 3
Highlighted
CTCT Employee

Re: How can we retrieve the next 10 upcoming events from CC in C# or VB.Net?

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

Highlighted
Occasional Visitor

Re: How can we retrieve the next 10 upcoming events from CC in C# or VB.Net?

How does the API return 10? In order they were created or in upcoming dates?

Highlighted
CTCT Employee

Re: How can we retrieve the next 10 upcoming events from CC in C# or VB.Net?

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

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