Description Usage Arguments Value References Examples
View source: R/authentication.R
get_access_token
gets an access token for the API. To obtain the
client ID and client secret, you need to create a Yelp app. This is free, and
takes about 10 minutes. Go to
https://www.yelp.com/developers/documentation/v3/authentication for
instructions.
store_access_token
stores the access token as an environment variable.
1 2 3 | get_access_token(client_id, client_secret)
store_access_token(access_token)
|
client_id |
A string giving the Client ID. |
client_secret |
A string giving the client secret. |
access_token |
A string generated by |
get_access_token
returns 128 character string giving the
access token.
store_access_token
is invoked for the side-effect of storing the
access token in an environment variable.
https://www.yelp.com/developers/documentation/v3/authentication
1 2 3 4 5 | ## Not run:
(access_token <- get_access_token())
store_access_token(access_token)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.