@esri/arcgis-rest-request

Common methods and utilities for ArcGIS REST JS packages.

Install

Use dark colors for code blocksCopy
 
1
npm install @esri/arcgis-rest-request

Import

@esri/arcgis-rest-request is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
 
1
import * as requestTools from "@esri/arcgis-rest-request"
Use dark colors for code blocksCopy
 
1
const requestTools = require("@esri/arcgis-rest-request");

CDN

You can use @esri/arcgis-rest-request as an ES Module from the Skypack CDN.

Use dark colors for code blocksCopy
   
1
2
3
<script type="module">
  import * as requestTools from "https://cdn.skypack.dev/@esri/arcgis-rest-request@3.5.1";
</script>

You can also use @esri/arcgis-rest-request from a script tag. All exports will be added to a global arcgisRest object.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/@esri/arcgis-rest-request@3.5.1/dist/umd/request.umd.js"
  integrity="sha512-ALzkqlWUfjWui1HCWlYvUC3AgKiyaN+MmgQRBGQ/y1rR5IPhjDO16i5OtDQ73DSaHiwtZ2nM26HWy6+XYNClTg==">
</script>

Exports

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