{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/apps/:app_id/geofences","auth":"required","examples":{"codes":[{"language":"shell","code":"curl -X GET \"https://control.pulsatehq.com/api/v1/apps/$APP_ID/geofences\"\n\t-H \"Authorization: Token token=$MY_ADMIN_API_TOKEN\"","name":""}]},"method":"get","params":[{"name":"app_id","type":"string","default":"","desc":"App ID. It can be fetched by using \"Apps: Get All (Index)\" or \"Apps: Get One (Show)\" endpoints.","required":true,"in":"path","ref":"","_id":"57ff8219c135231700aed827"},{"name":"page","type":"int","default":"1","desc":"Number of the page to be fetched","required":false,"in":"query","ref":"","_id":"564c387b9baa330d00faa623"}],"results":{"codes":[{"status":200,"language":"json","code":"[\n  {\n    \"guid\": \"NDua9qkA\",\n    \"name\": \"pekao\",\n    \"path\": [\n      [\n        50.04685364613726,\n        19.923255443572998\n      ],\n      [\n        50.045082976079016,\n        19.92446780204773\n      ],\n      [\n        50.04431130176547,\n        19.92117404937744\n      ],\n      [\n        50.04633003066532,\n        19.920047521591187\n      ]\n    ],\n    \"radius\": null,\n    \"shape\": \"polygon\",\n    \"type\": \"enter\",\n    \"location\": [\n      50.04685364613726,\n      19.923255443572998\n    ],\n    \"id\": \"5859194a636f6e9a51920300\"\n  }\n]","name":""}]},"settings":"564bbbf80cbcc91700b8171c"},"next":{"description":"","pages":[]},"title":"Geofences: Get All (Index)","type":"endpoint","slug":"geofences-fetch-all","excerpt":"","body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Geofences are fetched in batches, 100 per batch.\",\n  \"title\": \"Geofence Paging\"\n}\n[/block]","updates":[],"order":38,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e4fced159815700262d28c8","editedParams2":true,"githubsync":"","parentDoc":null,"__v":4,"category":{"sync":{"isSync":false,"url":""},"pages":["5e4fced159815700262d28c6","5e4fced159815700262d28c7","5e4fced159815700262d28c8","5e4fced159815700262d28c9","5e4fced159815700262d28ca","5e4fced159815700262d28cb","5e4fced159815700262d28cc","5e4fced159815700262d28cd","5e4fced159815700262d28ce","564c68a93eb8f81700838a25"],"title":"Pulsate CMS API","slug":"pulsate-cms-api","order":1,"from_sync":false,"reference":true,"_id":"5e4fced159815700262d289e","__v":10,"createdAt":"2015-11-17T23:47:10.058Z","project":"54aa7f773b56130b0056c86e","version":"5e4fced159815700262d2930"},"editedParams":true,"user":"54aa7f3f9bb00c0b00cb899b","version":{"version":"2.2","version_clean":"2.2.0","codename":"CMS API","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e4fced159815700262d2899","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","5e4fced159815700262d289a","5e4fced159815700262d289b","5e4fced159815700262d289c","5e4fced159815700262d289d","5e4fced159815700262d289e","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","5e4fced159815700262d289f","5e4fced159815700262d28a0","5c73dd27e8fdc000572a206a","5e4fced159815700262d28a1","5e53c04c1d11110018b56e12"],"_id":"5e4fced159815700262d2930","project":"54aa7f773b56130b0056c86e","forked_from":"55781fe25129590d003ff4f7","__v":1,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z"},"createdAt":"2015-11-18T08:36:11.902Z","project":"54aa7f773b56130b0056c86e"}

getGeofences: Get All (Index)


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app_id:
required
string
App ID. It can be fetched by using "Apps: Get All (Index)" or "Apps: Get One (Show)" endpoints.

Query Params

page:
integer1
Number of the page to be fetched

Examples


Result Format


Documentation

[block:callout] { "type": "info", "body": "Geofences are fetched in batches, 100 per batch.", "title": "Geofence Paging" } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}