Skip to content

Interface

Properties

PropertyTypeNotes
clientIdstring

Client ID of your application. Can be obtained by registering an application on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise.

clientSecretstring

A Client Secret is also obtained by registering an application on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise. Treat it like a password.

durationnumber

Duration of requested tokens in minutes. defaults to 7200 (5 days).

expiresDate

Expiration date for the token

portalstring

URL of ArcGIS REST base, defaults to "https://www.arcgis.com/sharing/rest"

tokenstring

OAuth 2.0 access token from a previous application session.

clientId

Interface Property

clientSecret

Interface Property

duration

optional
Interface Property

expires

optional
Interface Property

portal

optional
Interface Property

token

optional
Interface Property

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.