This is the legacy mechanism for retrieving the authorization token using OAuth. It has been replaced by aw_auth().

[Deprecated]

aw_token(
  client_id = Sys.getenv("AW_CLIENT_ID"),
  client_secret = Sys.getenv("AW_CLIENT_SECRET"),
  use_oob = TRUE
)

Arguments

client_id

defined by global variable or manually defined

client_secret

defined by global variable or manually defined

use_oob

for the purpose of testing. Default is set to TRUE

Value

An authorization token is saved the file name aa.oauth. If the file aa.oauth does not exist then one will be created at the end of the authorization process.

See also