To generate a API key , click on the key icon After adding the device And Click on the refresh icon To generate a new key Any time.
Parameter | Value | Description |
---|---|---|
method | "POST" or "GET" | For How you want to send data ,Only Value "post" or "get" Always use it |
uid | Device UniqueID |
Always use it |
key | Encrypted key |
Device API secret key Always use it |
cmd | One of these:
"get" "ping" |
only use one of these commands when you send a requests to iotbind
"get" If you want get device data frome iotBind platform "ping" If you want send ping Command to iotBind platform to learn that the device is connected |
longitude | numbers |
Use it for update longitude |
latitude | numbers |
Use it for update latitude |
data1 | Text or numbers |
(optional) Use it only for update data1 |
data2 | Text or numbers |
(optional) Use it only for update data2 |
data3 | Text or numbers |
(optional) Use it only for update data3 |
data4 | Text or numbers |
(optional) Use it only for update data3 |
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "Phone app tracking",
"longitude": "17.6359479",
"latitude": "44.5318535",
"data1": "Anything",
"data1_unit": "Anything",
"data2": "Anything",
"data2_unit": "Anything",
"data3": "Anything",
"data3_unit": "Anything",
"data4": "Anything",
"data4_unit": "Anything"
}
{"MESSAGE":"UPDATED"}
{
"uid": "UniqueID",
"name": "DeviceName",
"type": "Phone app tracking",
"longitude": "17.6359479",
"latitude": "44.5318535",
"data1": "Anything",
"data1_unit": "Anything",
"data2": "Anything",
"data2_unit": "Anything",
"data3": "Anything",
"data3_unit": "Anything",
"data4": "Anything",
"data4_unit": "Anything"
}
{"MESSAGE":"PING OK"}
{"MESSAGE":"PING OK"}