set_credentials: Get/Set Credentials

View source: R/get_token.R

set_credentialsR Documentation

Get/Set Credentials

Description

Get or set app credentials

Usage

set_credentials(
  client_id,
  client_secret,
  app_name,
  path = "~/secrets/getarc-credentials.json"
)

Arguments

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

Details

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.


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.