generate_token: Generate an access token

Description Usage Arguments References Examples

View source: R/generate_token.R

Description

Generate an access token

Usage

1
generate_token(client_id, client_secret, expiration = "60")

Arguments

client_id

ID for the ArcGIS REST API

client_secret

Secret for the ArcGIS REST API

expiration

The length of time the token should last in minutes

References

https://developers.arcgis.com/

Examples

1
2
3
4
5
6
7
## Not run: 
client_id <- "your client id"
client_secret <- "your client secret"

generate_token(client_id, client_secret)

## End(Not run)

NateByers/arcgisapi documentation built on March 21, 2020, 4:49 a.m.