View source: R/eb_query_function.R
eb_query | R Documentation |
This function is a wrapper for call_eventbrite to simplify getting data after the url has been tested to work. It extracts the Eventbrite's event data from its original JSON format. The function relies on "jsonlite" package and will install if it doesn't exist
eb_query(query = "events", query_id = NA, sub_query = NA, sub_id = NA, token = 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" |
sub_id |
the unique id for the sub-query |
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/ |
event = eb_query(event_id = event_id, sub_query = "orders", token = .Options$eventbrite_token) %>% get_eb_orders(event)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.