get_token | R Documentation |
Get an access token for accessing a service
get_token(
client_id = NULL,
client_secret = NULL,
app_name = NULL,
use_cache = TRUE,
auto_refresh = TRUE,
redirect_uri = httr::oauth_callback()
)
client_id |
app credential: client ID |
client_secret |
app credential: client secret |
app_name |
app credential: app name |
use_cache |
should the token be cached? Currently not working |
auto_refresh |
should the token automatically be refreshed if it has expired? |
redirect_uri |
the url to redirect to after authenticating. default is httr::oauth_callback(). This needs to be added into your web app on arc gis for developers. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.