Common methods and utilities for ArcGIS REST JS packages.
Install
npm install @esri/arcgis-rest-request
Import
@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.2.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.2.3/dist/bundled/request.umd.min.js"
integrity="sha512-bsrIB9+E7zPTAkH4m9xEq1M9zjinqocAgFzrkyEPfW6+S9LvVm7BT2PlZXNTaftu7HJpCuOdQmNEr0wJBuFFuA==">
</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
- isFederated
- isOnline
- normalizeOnlinePortalUrl
- processParams
- request
- requiresFormData
- revokeToken
- 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
- JsonCurve
- Position
- Position2D
- ResponseFormats
- SymbolType
- Units