2012-07-15 36 views
1

我一直在注意到,有時對事件搜索的響應返回的日期範圍在que3之外的事件。下面是一個例子(用我的鑰匙刪除):事件搜索將日期範圍外的事件返回到日期範圍外

http://www.eventbrite.com/json/event_search?app_key=mykey&keywords=Photography&max=10&latitude=34.19751&longitude=-119.1771&within=50&within_unit=K&date=2012-07-20%202012-07-22

下面是參數,每行一個:

http://www.eventbrite.com/json/event_search 
?app_key=mykey 
&keywords=Photography 
&max=10 
&latitude=34.19751 
&longitude=-119.1771 
&within=50 
&within_unit=K 
&date=2012-07-20%202012-07-22 

如果我運行此查詢,我得到3個事件,其中一個看起來是這樣的(與縮短簡潔一些項目):

 "event": { 
      "box_header_text_color": "005580", 
      "link_color": "EE6600", 
      "box_background_color": "FFFFFF", 
      "timezone": "US/Pacific", 
      "box_border_color": "D5D5D3", 
      "logo": "http://...", 
      "organizer": { 
       "url": "http://..., 
       "id": 1066754373, 
       "name": "Red Brick Gallery" 
      }, 
      "background_color": "FFFFFF", 
      "id": 2667310999, 
      "category": "seminars,entertainment", 
      "box_header_background_color": "EFEFEF", 
      "capacity": 8, 
      "num_attendee_rows": 9, 
      "title": "Copy of Watercolor Workshops with Joe Cibere", 
      "start_date": "2011-07-23 14:00:00", 
      "status": "Started", 
      "description": "...", 
      "end_date": "2012-06-16 17:00:00", 
      "tags": "...", 
      "text_color": "005580", 
      "repeat_schedule": "custom-2659333", 
      "title_text_color": "", ... 

我用鍵(「事件」下)「起始日期」和「END_DATE」,以確定事件的日期,從2011-0跨越7-23至2012-06-16。

查詢從2012-07-20至2012-07-22間接詢問。

事件的日期範圍和查詢的日期範圍不重疊。

我做錯了我的查詢,或者是響應不正確?

回答

1

儘管此事件計劃在'2012-06-16'結束,但它將配置爲在將來的各個日期重複。有關更多信息,請參閱「重複次數」和「repeat_schedule」屬性。

我們最近添加了對允許您訪問'start_date'和'end_date'對(每個重複實例)數組的支持。

附加響應輸出應包括添加一個「顯示」參數爲「repeat_schedule」到event_getevent_searchuser_list_events,或organizer_list_events API調用的值的任何時間。