View source: R/call_eventbrite_function.R
call_eventbrite | R Documentation |
This function compiles the url required to call the Eventbrite API based on a few parameters. call_eventbrite returns the URL as a string, which should be used with get_eb_event() function relies on "httr" package and will install if it doesn't exist
call_eventbrite(query = "events", query_id = NA, sub_query = NA, sub_id = NA, token = .Options$eventbrite.token)
query |
the top-level query. Defaults to "events". Other query entries could be "users" or "orders". |
query_id |
the unique id that every Eventbrite event has |
sub_query |
the particular information wanted from the query. If query = "events", then sub_query could be "attendees", "users", "orders", "display_settings", "ticket_classes", "canned_questions", "questions", "discounts", "public_discounts", "access_codes", "transfers", "teams", "ticket_groups", "ticket_classes", "ticket_buyer_settings" |
token |
the API token needed to call the API. Go here to create your own app and get an API token: http://www.eventbrite.com/myaccount/apps/ |
url = call_eventbrite(query_id = query_id, sub_query = "orders", token = token) # will return the url for a given event's orders/registrations (using query_id) event = eb_query(url) orders = get_eb_orders(event)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.