2014-01-08 2 views
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 요청이 처리하는 데 오랜 시간이 걸릴 수 있습니다.

현재 이벤트 만받을 수있는 방법이 있습니까?

답변

0

예, user_list_events API를 사용하고 event_statuses=live을 전달하면 실시간 이벤트 만 반환 할 수 있습니다.

http://developer.eventbrite.com/doc/users/user_list_events/

나는이 .NET 래퍼가 구현되는 방법을 정확하게 모르겠지만, 당신이 user_list_events를 호출하는 적절한 방법을 찾아 관심있는 사용자 모두 event_statuses=live[email protected] 전달해야합니다 자신의 이벤트를 받으려고 시도하는 경우 user 인수를 생략하고 기본적으로 이벤트가 반환됩니다.

관련 문제