event_lookup: Look up an event by Yelp ID

Description Usage Arguments Value Examples

View source: R/event-lookup.R

Description

Use the ID from a business search to return only details for that business.

Usage

1
2
event_lookup(events, locale = get_yelp_locale(),
  access_token = Sys.getenv("YELP_ACCESS_TOKEN", NA))

Arguments

events

A character vector describing the Yelp IDs of events, as returned by event_search, or the data frame returned by that API endpoint.

locale

A string naming the locale. See SUPPORTED_LOCALES for allowed values.

access_token

A string giving an access token to authenticate the API call. See get_access_token.

Value

A data frame with 1 row and 28 columns.

Examples

1
2
3
4
5
6
## Marked as don't test because an access token is needed
# First search for events
events_in_kansas_city <- event_search("kansas city")
# Use the returned ID to lookup a specific event
the_main_event <- event_lookup(events_in_kansas_city$id[1L])
if(interactive()) View(the_main_event) else str(the_main_event)

richierocks/yelp documentation built on May 3, 2019, 4:08 p.m.