0
我正在使用此.NET API包裝器,http://penguinboy.github.com/Eventbrite.NET。如何使用Eventbrite.net API封裝器僅獲取當前事件
嘗試示例代碼,已被轉換成VB.net後:
' Create the context object with your API details
Dim context = New EventbriteContext("Replace with APP Key", "Replace with User Key")
' Instantiate Organizer entity with the desired organizer ID
Dim organizer = context.GetOrganizer(Replace with Organizer ID)
' Get all the events that the organizer has created
Dim events = organizer.Events.Values
' Get the first event in the collection
Dim firstEvent = events.First()
' All the attendees in that event
Dim attendees = firstEvent.Attendees
' All the tickets in that event
Dim tickets = firstEvent.Tickets.Value
的organiser.event.values將返回我所有的過去和現在的事件。目前,我使用循環來查看事件列表,但如果組織者創建了大量事件,則http請求可能需要很長時間才能處理。
是否有任何方法可以提供僅獲取當前事件的能力?