Description Usage Arguments Details Value Examples
get_token
gets Access Token for V2 aWhere API
1 |
uid |
Consumer key associated with the user's aWhere API account |
secret |
Consumer secret associated the user's aWhere API account |
apiAddress |
Address of aWhere API to use. For advanced use only. Most users will not need to use this parameter (optional) |
use_enviroment |
Optional logical value, determines whether API access
token will be saved in a local locked environment in addition to being returned
by the function. Defaults to |
This script provides an aWhere access token for the current session of the API. Information for the key and secret in this function can be found on a user's account at developer.awhere.com, under the apps.
List with three elements:#'
error: logical indicating whether there was an error
error_message: NULL
if error is FALSE
, a character error message otherwise
token: aWhere API access token value
1 2 | ## Not run: get_token("uid", "secret")
## Not run: token_response <- get_token('uid', 'secret', use_environment = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.