5

我注意到,当我通过按日期排序的 event_search 方法搜索未来事件时,结果集中的第一个事件的开始日期是过去的。这些事件的问题在于它们是可重复的事件(例如每周),但 API 不返回事件的重复类型(每天、每周、每月、其他)。方法至少应返回下一个事件开始日期和重复类型。

4

4 回答 4

8

隐藏功能:

将“display=repeat_schedule”添加到您的 API 请求中,以显示每个重复实例的一系列 start_date、end_date 对。

于 2012-10-24T18:33:08.163 回答
5

Unfortunately, Eventbrite's "repeating events" feature (available on their website) is not totally compatible with their API services:

Most storage models have an associated identifier or 'handle' to reference each asset or resource. In REST-speak these identifiers are known as 'resource ids'. Eventbrite's repeating events share a single event id, and they include a string that describes the schedule when they repeat.

The head of the chain of repeating events is returned, with a "repeats" attribute that is set to "yes". And, the "repeat_schedule" attribute should now be present on all repeating events.

The string that is revealed will have a different format depending how the event is configured to repeat:

Daily repeating events:

  • "daily-4-07/26/2012" - every fourth day, from the date/time of the start_date until 2012-07-26.
  • "daily-mf-07/26/2012" - every Monday through Friday, from the start_date day/time until "2012-07-26"

Weekly repeating events:

  • "weekly-3-Y,N,N,N,N,N,N-09/16/2012" - every 3rd week, on each day marked with a "Y" until "2012-09-16"

Monthly repeating events:

  • "monthly-2-10-06/30/2012" - every second month, on the 10th day of the month until "2012-06-30"
  • "monthly-2-second/sat-06/30/2012" - every second month, on the second Saturday of that month, until "2012-06-30". Custom repeat schedule (not fully supported):
  • "custom-3199915" - This format is really rare. Unfortunately, these events can not be easily summarized using a single string.
于 2012-02-24T18:51:33.980 回答
2

这个bug需要EventBrite修复

但是,这项工作是否有临时解决方法?我会在我见过的一些例子中工作。

我在 2012 年 3 月 17 日申请活动

我找回了过去的约会

<repeats>yes</repeats>
<start_date>2011-12-04 09:30:00</start_date>
<end_date>2011-12-04 10:30:00</end_date>

我可以假设这是在 2012 年 3 月 17 日同时发生的重复事件吗?

于 2012-03-18T17:41:51.507 回答
0

有一个新端点可用于获取属于系列的所有事件,唯一需要的值是:OAuth Token以及event_series_id哪个是父事件 ID 或创建系列的事件的 ID。

这是端点:

GET - https://www.eventbriteapi.com/v3/series/{event_series_id}/events/

替换{event_series_id}为您的活动系列 ID。

更多详情请访问:https ://www.eventbrite.com/platform/api#/reference/event/list/list-events-by-series

于 2020-02-13T01:40:32.067 回答