| mobdb_set_key | R Documentation |
Store your Mobility Database API refresh token for use in subsequent API calls. The refresh token is used to generate short-lived access tokens automatically.
mobdb_set_key(refresh_token, install = FALSE)
refresh_token |
A string. Your Mobility Database API refresh token. Obtain this by signing up at https://mobilitydatabase.org and navigating to your account details page. |
install |
A logical. If |
Invisibly returns TRUE if successful.
# Set token for current session
mobdb_set_key("your_refresh_token_here")
## Not run:
# Set token permanently in .Renviron
mobdb_set_key("your_refresh_token_here", install = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.