问题
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.
回答1:
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
.
回答2:
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());
来源:https://stackoverflow.com/questions/15765021/how-to-show-future-events-with-organizer-list-events-on-the-eventbrite-api