get_token: Get Access Token

View source: R/get_token.R

get_tokenR Documentation

Get Access Token

Description

Get an access token for accessing a service

Usage

get_token(
  client_id = NULL,
  client_secret = NULL,
  app_name = NULL,
  use_cache = TRUE,
  auto_refresh = TRUE,
  redirect_uri = httr::oauth_callback()
)

Arguments

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.


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