Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

trigger/list

Contents

URL

https://api.geoloqi.com/1/trigger/list

Description

Retrieves all triggers for the given place or layer.

Supported Request Methods

GET

Parameters

  • layer_id
    The ID of the layer to retrieve triggers from.
  • place_id
    The ID of the place to retrieve triggers from.
  • on (default: layer)
    "layer" or "places". If on=layer, triggers associated with the entire layer are returned. If on=places, all triggers on all places on the layer are returned.

If no parameters are specified, then all triggers on the user's default layer are returned.

Response

{
   "triggers":[
      {
         "trigger_id":"GRu",
         "layer_id":"GqT",
         "type":"callback",
         "trigger_on":"enter",
         "trigger_after":"0",
         "one_time":"0",
         "text":"",
         "callback_url":"http:\/\/example.com\/geoloqi_callback.php"
      },
      {
         "trigger_id":"GRv",
         "layer_id":"GqT",
         "type":"callback",
         "trigger_on":"enter",
         "trigger_after":"10",
         "one_time":"0",
         "text":"",
         "callback_url":"http:\/\/example.com\/geoloqi_callback.php"
      }
   ]
}