hubApiRequest
import { hubApiRequest } from "@esri/hub-common";
//
hubApiRequest(
"/datasets",
requestOptions
})
.then(response);
make a request to the Hub API
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| route Required | string |
API route |
|
| requestOptions Optional | IHubRequestOptions |
request options |
Available requestOptions
| Property | Type | Notes |
|---|---|---|
| Optional | ArcGISIdentityManager | |
| Optional | function(input: RequestInfo, init: RequestInit) : Promise<Response> |
The implementation of |
| Optional | string |
This is for server-side usage only, not for front-end use. |
| Optional | string | |
| Optional | boolean | |
| Optional | IHubRequestOptionsPortalSelf |
Returns
Promise<any>
Function defined in packages/common/src/request.ts:33