set_credentials | R Documentation |
Get or set app credentials
set_credentials(
client_id,
client_secret,
app_name,
path = "~/secrets/getarc-credentials.json"
)
client_id |
The client ID. Taken from you app dashboard on arcgis for developers |
client_secret |
The client secret. Taken from you app dashboard on arcgis for developers |
app_name |
The name of your app. Taken from you app dashboard on arcgis for developers |
path |
The path where the credentials should be saved |
set_credentials and get_credentials set and retrieve option variables for the client id, client secret and app name. This then allows get_token to retrieve the variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.