How to show future events with organizer_list_events on the EventBrite API

StackOverflow https://stackoverflow.com/questions/15765021

  •  31-03-2022
  •  | 
  •  

Question

I always get ended events from the eventBrite api when i use the organizer_list_events. I tried with statuses live, started (and both). But that doesn't seem to work.

The event_search api has a "date:Future" possibility. Which is working fine, but then I don't have a possibility to pass the organiserId.

Était-ce utile?

La solution

Note, I work on the platform team at Eventbrite

organizer_list_events does not accept a status parameter:

http://developer.eventbrite.com/doc/organizers/organizer_list_events/

However, user_list_events does:

http://developer.eventbrite.com/doc/users/user_list_events/

In the case that one user has one organizer, these calls should return the same data. It's possible for one user to have multiple organizers, in which case user_list_events could return more data than needed. Still, using the status parameter should cut down on what you're currently receiving.

We're in the process of building a new and much improved API, but I can look at adding a status field to organizer_list_events.

Autres conseils

Using the user_list_events I just did this (in c#):

items = XElement.Parse(xmlResult).Elements("event").Where(e=>e.Element("organizer").Element("id").Value == this.OrganiserId.ToString());
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top