Skip to contents

Treat this token as you would a password: don't hard-code it in your scripts or save it to a file. It will expire after 60 minutes.

Usage

fetchAGOLToken(
  agol_username,
  agol_password = keyring::key_get(service = "AGOL", username = agol_username),
  root = "nps.maps.arcgis.com",
  referer = "https://irma.nps.gov"
)

Arguments

agol_username

AGOL headless account username

agol_password

AGOL headless account password (do not hard code this into your scripts!)

root

NPS users should keep the default. See https://developers.arcgis.com/rest/users-groups-and-items/root.htm for more information.

referer

NPS users should keep the default. See https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm for more information.

Value

An AGOL authentication token