{"_id":"5526e78a4a7ac121004c6086","version":{"_id":"5435693035740020002a1c1f","__v":15,"project":"5435693035740020002a1c1c","createdAt":"2014-10-08T16:41:20.702Z","releaseDate":"2014-10-08T16:41:20.702Z","categories":["5435693035740020002a1c20","551c03c1ff892b3700d1c57a","551ca3927405910d00900a59","551cac6448564a2f0024d89e","551cb4d848564a2f0024d8a3","551cb52db7a32b3b00d1ef78","5526e2064a7ac121004c6073","5526e5147d4a4417009516b3","5526e9877d4a4417009516bb","5528362cd9e1db2d00cd924d","5580240ebe698419008f2ba2","5580a7dabe698419008f2db6","568161799de23c0d00c54750","5866c905a2cbb31900f6f1aa","5bfc066d8342500013783e0c"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5526e5147d4a4417009516b3","__v":4,"pages":["5526e653e69c7d0d00047e5e","5526e78a4a7ac121004c6086","5526e88ee69c7d0d00047e64","5526e92a4a7ac121004c608f"],"project":"5435693035740020002a1c1c","version":"5435693035740020002a1c1f","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-04-09T20:46:12.252Z","from_sync":false,"order":4,"slug":"organizations","title":"Organizations"},"githubsync":"","editedParams":true,"__v":2,"parentDoc":null,"project":"5435693035740020002a1c1c","user":"551d4f2dd4fb192f007e8350","editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-09T20:56:42.411Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"GET /v1.0/organizations/34/locations HTTP/1.1\nHost: api.robinpowered.com\nContent-Type: application/json\nAuthorization: Access-Token :accessToken\n","language":"http"}]},"method":"get","results":{"codes":[{"name":"","code":"{\n    \"meta\": {\n        \"status_code\": 200,\n        \"status\": \"OK\",\n        \"message\": \"\",\n        \"more_info\": {}\n    },\n    \"data\": [\n        {\n            \"id\": 10,\n            \"account_id\": 34,\n            \"campus_id\": 1,\n            \"name\": \"Robin HQ\",\n            \"description\": \"The Boston office\",\n            \"address\": \"87 Summer street Boston, MA 02110\",\n            \"image\": \"https://robinpowered.com/logo.png\",\n            \"latitude\": 42.35381700,\n            \"longitude\": -71.05863900,\n            \"updated_at\": \"2014-10-22T22:37:23+0000\",\n            \"created_at\": \"2014-10-22T22:37:23+0000\"\n        }\n    ],\n    \"paging\": {\n        \"page\": 1,\n        \"per_page\": 10\n    }\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5526eb434a7ac121004c6098","ref":"","in":"path","required":true,"desc":"The ID or slug of the organization","default":"","type":"mixed","name":"id"},{"_id":"5526e78a4a7ac121004c6089","ref":"","in":"query","required":false,"desc":"Will filter by a specified location name","default":"","type":"string","name":"query"},{"_id":"5526e78a4a7ac121004c6088","ref":"","in":"query","required":false,"desc":"The page of the result","default":"1","type":"int","name":"page"},{"_id":"5526e78a4a7ac121004c6087","ref":"","in":"query","required":false,"desc":"How many results are returned per page","default":"10","type":"int","name":"per_page"}],"url":"/organizations/:id/locations"},"isReference":true,"order":1,"body":"## Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"var robin = new RobinSDK('[[app:Token]]');\\n\\nrobin.api.organizations.locations.get(organizationId).then(function (response) {\\n  var locations = response.getData();\\n});\",\n      \"language\": \"javascript\"\n    },\n    {\n      \"code\": \"curl -X GET https://api.robinpowered.com/v1.0/organizations/:id/locations\\n    -H \\\"Authorization: Access-Token [[app:Token]]\\\"\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"Get all of an organization's locations","slug":"get-organization-locations","type":"endpoint","title":"/organizations/:id/locations"}

get/organizations/:id/locations

Get all of an organization's locations

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
mixed
The ID or slug of the organization

Query Params

query:
string
Will filter by a specified location name
page:
integer1
The page of the result
per_page:
integer10
How many results are returned per page

Examples


Result Format


Documentation

## Examples [block:code] { "codes": [ { "code": "var robin = new RobinSDK('[[app:Token]]');\n\nrobin.api.organizations.locations.get(organizationId).then(function (response) {\n var locations = response.getData();\n});", "language": "javascript" }, { "code": "curl -X GET https://api.robinpowered.com/v1.0/organizations/:id/locations\n -H \"Authorization: Access-Token [[app:Token]]\"", "language": "curl" } ] } [/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 }}