getHubApiUrl
import { getHubApiUrl() } from "@esri/hub-common";
//
getHubApiUrl({ portal: "https://custom.maps.arcgis.com/sharing/rest" })
>> "https://hub.arcgis.com"
Retrieves the Hub API Url associated with a specific ArcGIS Online organization.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
urlOrObject Required | IPortal | IHubRequestOptions | IRequestOptions | string |
a Portal URL, Portal API URL, request options object, or Portal self object |
Returns
the associated Hub API Url as a string.
string
Function defined in common/src/api.ts:17