Common methods and utilities for ArcGIS REST JS packages.
Install
npm install @esri/arcgis-rest-requestImport
@esri/arcgis-rest-request is distributed as both ES Modules and Common JS modules.
import * as requestTools from "@esri/arcgis-rest-request"const requestTools = require("@esri/arcgis-rest-request");CDN
You can use @esri/arcgis-rest-request as an ES Module from the esm.run CDN.
<script type="module">
import * as requestTools from "https://esm.run/@esri/arcgis-rest-request@4.7.3";
</script>You can also use @esri/arcgis-rest-request from a script tag. All exports will be added to a global arcgisRest object.
<script
src="https://unpkg.com/@esri/arcgis-rest-request@4.7.3/dist/bundled/request.umd.min.js"
integrity="sha512-i/2GghEwn1m2o3+lMGMqsG0hR72sxon9CTk3rdfKSnIf5ZyqqjgdLfvHiujGYRS5vo4vc9MxdbXLkVB/yXxOJQ==">
</script>Exports
- ApiKeyManager
- ApplicationCredentialsManager
- ArcGISAccessDeniedError
- ArcGISAuthError
- ArcGISIdentityManager
- ArcGISJobError
- ArcGISRequestError
- ArcGISTokenRequestError
- Job
- appendCustomParams
- canUseOnlineToken
- checkForErrors
- cleanUrl
- decodeParam
- decodeQueryString
- encodeFormData
- encodeParam
- encodeQueryString
- exchangeToken
- fetchToken
- getDefaultRequestOptions
- getFetch
- getOnlineEnvironment
- getRegisteredNoCorsDomains
- isFederated
- isNoCorsDomain
- isNoCorsRequestRequired
- isOnline
- normalizeOnlinePortalUrl
- processParams
- registerNoCorsDomains
- request
- requiresFormData
- revokeToken
- sendNoCorsRequest
- setDefaultRequestOptions
- validateAppAccess
- warn
- withOptions
- ArcGISTokenRequestErrorCodes
- ErrorTypes
- JOB_STATUSES
- IApiKeyOptions
- IAppAccess
- IApplicationCredentialsManagerOptions
- IArc
- IArcGISIdentityManagerOptions
- IAuthenticatedRequestOptions
- IAuthenticationManager
- IBezierCurve
- ICircularArc
- ICredential
- IExtent
- IFeature
- IFeatureSet
- IFetchTokenParams
- IFetchTokenResponse
- IField
- IFromTokenOptions
- IGenerateTokenParams
- IGeometry
- IGroup
- IGroupAdd
- IHasZM
- IJobInfo
- IJobOptions
- ILocation
- IMultipoint
- IOAuth2Options
- IOldCircularArc
- IParamBuilder
- IParams
- IParamsBuilder
- IPoint
- IPolygon
- IPolygonWithCurves
- IPolyline
- IPolylineWithCurves
- IRequestOptions
- IRevokeTokenOptions
- IRevokeTokenResponse
- IServerInfo
- ISignInOptions
- ISpatialReference
- ISubmitJobOptions
- ISymbol
- ITokenRequestOptions
- IUser
- IUserRequestOptions
- Blob
- File
- FormData
- NODEJS_DEFAULT_REFERER_HEADER
- AuthenticationProvider
- DomainType
- ElipticArc
- FieldType
- GeometryType
- GrantTypes
- GroupMembership
- HTTPMethods
- ICodedValue
- IDomain
- IRetryAuthError
- InternalRequestOptions
- JsonCurve
- Position
- Position2D
- ResponseFormats
- SymbolType
- Units