hubApiRequest

Function
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
authentication Optional UserSession
hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

any

Function defined in common/src/request.ts:33