Install OpenVPN Client
Grid RESTful API Start-up Guide
23
JSON Response:
data object
containing an
Array
of filtered query response objects.
Example 1
– GET URL:
(HTTP GET with "deviceID" parameter not specified - will send to all
gateways you have access to)
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC&deviceAPIVersion=2
Example 1
– JSON Response:
{
"message": "Call successful",
"error": null,
"data": {
"gateway_1": {
"data": [
{
"deviceInstance": 1,
"deviceName": "WeatherLink_1",
"pollInterval": 5,
"offline": false,
"objects": {
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 42.70000076293945,
"type": "REAL"
},
"lastRead": 1513687777060,
"log": {
"enabled": false,
"keys": []
}
}
}
},
"analog-input:2": {
"objectType": "analog-input",
"objectInstance": 2,
"objectName": "OUTSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 39.79999923706055,
"type": "REAL"
},
"lastRead": 1513687777060,
"log": {
"enabled": true,
"keys": [
"1/analog-input:2/present-value"
]
}
}
}
}
}
},
{
"deviceInstance": 2,
"deviceName": "WeatherLink_2",
"pollInterval": 5,
"offline": false,
"objects": {
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 87.69999694824219,
"type": "REAL"
},
"lastRead": 1513687777497,
"log": {
"enabled": false,
"keys": []
}
}
}
},
"analog-input:2": {
"objectType": "analog-input",
"objectInstance": 2,
"objectName": "OUTSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {
"value": 77.5999984741211,
"type": "REAL"
},
"lastRead": 1513687777497,
"log": {
"enabled": true,
"keys": [
"2/analog-input:2/present-value"
]
}
}
}
}
}
}
]
},
"gateway_2": {
"data": [
{
"deviceInstance": 1,
"deviceName": "WeatherLink_1",
"pollInterval": 5,
"offline": false,
"objects": {
"analog-input:1": {
"objectType": "analog-input",
"objectInstance": 1,
"objectName": "INSIDE_TEMPERATURE",
"properties": {
"present-value": {
"propertyIdentifier": "present-value",
"value": {