getEventServiceUrl
import { request } from "@esri/arcgis-rest-request";
import { getEventServiceUrl } from "@esri/hub-events";
// org ids can be retrieved via a call to portals/self
request("http://custom.maps.arcgis.com/sharing/rest/portals/self")
.then(response => {
getEventServiceUrl(response.id)
.then(url)
// "https://hub.arcgis.com/api/v3/events/<orgId>..."
})
Get the Hub REST API endpoint to use for an organization's events
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
orgId Required | string |
Identifier of the ArcGIS Online Organization |
|
requestOptions Optional | IRequestOptions |
request options that may include authentication |
Available requestOptions
Property | Type | Notes |
---|
Returns
A Promise that will resolve with the events API url for a Hub enabled ArcGIS Online organization.
Promise<string>
Function defined in events/src/util.ts:27