Returns a list of Locations.
SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
type (accepted) | enum (1,2) | 1: location 2: remote site |
DOCUMENTATION
GET
Returns an array that contains all locations.
Level 5 is required
--
Example Request:
{
"module":"location.locations",
"method":"GET",
"request":{
"type":"2"
}
}
Example Response:
{
"status": 1,
"data": [
{
"id": 613062,
"name": "Abraco",
"country": "",
"address": "86 East 7th Street, New York, NY 10003, USA",
"lat": 0,
"lon": 0,
"store": 202039,
"type": 1,
"notes": "",
"timezone_id": null,
"map": "https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=86+East+7th+Street%2C+New+York%2C+NY+10003%2C+USA%2C+",
"directions": "https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=86+East+7th+Street%2C+New+York%2C+NY+10003%2C+USA%2C+"
}
],
"token": "xxxxxxx"
}