Install OpenVPN Client
Grid RESTful API Start-up Guide
27
Example 4
– JSON body:
{
"parameters": {
"deviceID": "gateway_1",
"deviceAPIVersion": "2",
"path": [
"deviceName",
"offline",
"objects/analog-input:1/objectName",
"objects/analog-input:1/properties/present-value/value",
"objects/analog-input:1/properties/present-value/lastRead"
]
}
}
Example 4
– JSON Response:
{
"message": "Call successful",
"data": [
{
"deviceName": "WeatherLink_1",
"offline": false,
"objects/analog-input:1/objectName":
"INSIDE_TEMPERATURE",
"objects/analog-input:1/properties/present-value/value": {
"value": 41.70000076293945,
"type": "REAL"
},
"objects/analog-input:1/properties/present-
value/lastRead": 1513692188395
},
{
"deviceName": "WeatherLink_2",
"offline": false,
"objects/analog-input:1/objectName":
"INSIDE_TEMPERATURE",
"objects/analog-input:1/properties/present-value/value": {
"value": 88.5,
"type": "REAL"
},
"objects/analog-input:1/properties/present-
value/lastRead": 1513692188494
}
],
"error": null
}
Example 5
– URL:
(HTTP POST with "dataFilter" parameter specified)
/rest/method/fieldpop-api/getDeviceData?happn_token=eyJ0eXAiOiJKV1QiLC
Example 5
– JSON body:
{
"parameters": {
"deviceID": "gateway_1",
"deviceAPIVersion": "2",
"path": [
"deviceName",
"offline",
"objects/analog-input:1/objectName",
"objects/analog-input:1/properties/present-value/value",
"objects/analog-input:1/properties/present-value/lastRead"
],
"options": {
"dataFilter": {
"deviceInstance": {
"$eq": 1
}
}
}
}
}