getEventFeatureServiceUrl
import { request } from "@esri/arcgis-rest-request";
import { getEventFeatureServiceUrl } 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 => {
getEventFeatureServiceUrl(response.id)
.then(url)
// "https://services.arcgis.com/<orgId>/arcgis/rest/services/..."
})
Fetch the events feature service/view for the Hub organization and given authorization.
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 feature service url for a Hub enabled ArcGIS Online organization.
Promise<string>
Function defined in events/src/util.ts:63