How to show future events with organizer_list_even

2019-08-29 07:30发布

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.

标签: eventbrite
2条回答
祖国的老花朵
2楼-- · 2019-08-29 08:16

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.

查看更多
乱世女痞
3楼-- · 2019-08-29 08:21

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());
查看更多
登录 后发表回答