How to show future events with organizer_list_events on the EventBrite API

对着背影说爱祢 提交于 2019-12-12 03:55:57

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!