Arguments
user_id
token
Response
things — an array of elements:
did — External device identifier (GUID)
name — thing name
type — thing type
“geo” — thing transmits the GEO coordinates;
“data” — thing transmits the Integer value;
“switch” — two switch modes On/Off;
“alert” — event triggered style thing (such as a motion sensor);
“stream” — transfer video or images;
“level” — slider, such as fan speed in percentage;
“yweather” — Yandex weather widget
value — current value
connection_status – thing is online or offline. Two values: 0 or 1.
level_min — for things with LEVEL type, the minimum acceptable value
level_max — for things with LEVEL type, the maximum acceptable value
level_step — for things with LEVEL type, the minimum increment value
description — thing description
access — publicity of thing: public or private
icon — thing icon
lat — for things with the GEO type only
lon — for things with the GEO type only
param_title — The name of the parameter that passes the thing. For example, power, temperature, pressure, etc.
param_postfix — Units parameter which transmits the thing. For example: %, m2, BT, Lumen, etc.
status — Status of the response. Error or success.
message — Optional field. Transmitted only if status «Error» and contains a description of the «error».
Example: http://168.63.82.20/api/mythings?user_id=161&token=ebbf23afc227a20a2979818653fff75b
Response (JSON):
{
"things":
[{
"did":"nqemov6a6xeh",
"name":"Switch",
"type":"switch",
"value":0,
"connection_status":"0",
"level_min":"",
"level_max":"",
"level_min_title":"",
"level_max_title":"",
"level_step":"",
"optimal_value":"",
"optimal_value_title":"",
"description":"basic switch",
"access":"public",
"icon":"http:\/\/168.63.82.20\/images\/icon_light.png",
"lat":"0",
"lon":"0",
"param_title":"",
"param_postfix":"",
"date_modified":"0000-00-00 00:00:00",
"device_type":"light"
},
{
"did":"w2pfn3czjaxg",
"name":"Weather",
"type":"yweather", "value":"",
"connection_status":"0",
"level_min":"",
"level_max":"",
"level_min_title":"",
"level_max_title":"",
"level_step":"",
"optimal_value":"",
"optimal_value_title":"",
"description":"Via Yandex API",
"access":"public",
"icon":"http:\/\/168.63.82.20\/images\/icon_temperature.png",
"lat":"0",
"lon":"0",
"param_title":"Temperature",
"param_postfix":"oC",
"date_modified":"0000-00-00 00:00:00",
"device_type":"temperature"
}],
"status":"success"
}