Skip to content

Commit 535dd1c

Browse files
committed
update event_search_featured doc
add @return values
1 parent 48f2d34 commit 535dd1c

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

R/yelpr_events_endpoints.R

+27-1
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,40 @@ event_search <- function(api_key, ...){
7373
}
7474

7575

76-
#' return the featured event for a given location. Featured events are chosen by Yelp's community managers.
76+
#' return the featured event for a given location
77+
#'
78+
#' @description
79+
#' Featured events are chosen by Yelp's community managers
7780
#'
7881
#' @param api_key string
7982
#' @param transaction_type currently "delivery"
8083
#' @param location Required, if latitude and longitude not provided. Specifies the combination of "address, neighborhood, city, state or zip, optional country" to be used while searching for events.
8184
#' @param latitude Required, if location not provided. Latitude of the location to search from.
8285
#' @param longitude Required, if location not provided. Longitude of the location to search from.
8386
#'
87+
#' @return
88+
#' * attending_count: Number of Yelp users attending this event
89+
#' * category: The category alias of this event
90+
#' * cost: Cost of attending this event
91+
#' * cost_max: Maximum cost of this event
92+
#' * description: Description excerpt of this event
93+
#' * event_site_url: Yelp page of this event
94+
#' * id: Event id
95+
#' * image_url: Yelp image URL of this event
96+
#' * interested_count: Number of Yelp users interested in attending this event
97+
#' * is_canceled: Whether this event is canceled
98+
#' * is_free: Whether this event is free
99+
#' * is_official: Whether this event is created by a Yelp community manager
100+
#' * latitude: Latitude of this event
101+
#' * longitude: Longitude of this event
102+
#' * name: Name of this event
103+
#' * tickets_url: URL to buy tickets for this event
104+
#' * time_end: Time this event ends. Returns date and time in the following format - "YYYY-MM-DD HH-mm"
105+
#' * time_start: Time this event starts. Returns date and time in the following format - "YYYY-MM-DD HH-mm"
106+
#' * location: The location of this event, including address, city, state, zipcode and country
107+
#' * business_id: Yelp Business ID of this event. No ID is returned if a business is not associated with an event
108+
#' @md
109+
#'
84110
#' @examples
85111
#' key <- "######"
86112
#' event_search_featured(api_key = key, location = 'New York')

man/event_search_featured.Rd

+26-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)