eb_query: Get Eventbrite object

View source: R/eb_query_function.R

eb_queryR Documentation

Get Eventbrite object

Description

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

Usage

eb_query(query = "events", query_id = NA, sub_query = NA,
  sub_id = NA, token = eventbrite.token)

Arguments

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/

Examples


event = eb_query(event_id = event_id, sub_query = "orders", token = .Options$eventbrite_token) %>%
get_eb_orders(event)

paddytobias/eventbriteR documentation built on Jan. 6, 2023, 8:03 a.m.