getEventServiceItem

Function
import { request } from "@esri/arcgis-rest-request";
import { getEventServiceItem } 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 => {
    getEventServiceItem(response.id)
      .then(itemResponse)
  })

Fetch the events service associated with a Hub Site.

  • getEventServiceItem(orgId: string, requestOptions: IRequestOptions) : Promise<IItem>

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 item for a Hub enabled ArcGIS Online organization.

Promise<IItem>
Property Type Notes

Function defined in events/src/util.ts:136