查看Cloud Of Things API的源代码
←
Cloud Of Things API
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== View === <br> {| border="0" width=650 cellspacing="1" cellpadding="8" align="left" bgcolor=#1b74c2 | style="background:#dee7ec" width=80| URL | style="background:#ffffff" | http://api.easyhomelink.org/v1/device/DEV_ID/sensor/SEN_ID/datapoint/KEY |- | style="background:#dee7ec" | Formats | style="background:#ffffff" | JSON |- | style="background:#dee7ec" | Methods | style="background:#ffffff" | GET |- | style="background:#dee7ec" | Returns | style="background:#ffffff" | 设备信息 |} 返回传感器的最新数据: data.txt (最后一行是空行) <pre> GET /v1/device/1/sensor/1/datapoint HTTP 1.1 Accept: */* x-key: asdf1234 Content-Length: 0 Content-Type: text/html </pre> <pre> cat data.txt | netcat easyhomelink.org 3000 </pre> <pre> curl --request GET --header "x-key: YOUR_UUID" http://api.easyhomelink.org/v1/device/1/sensor/1/datapoint </pre> 返回传感器的所有数据: data.txt <pre> GET /v1/device/1/sensor/1/datapoints HTTP/1.1 Accept: */* x-chart: 1 x-key: asdf1234 Content-Length: 0 Content-Type: text/html </pre> <pre> curl --request GET --header "x-key: YOUR_UUID" http://api.easyhomelink.org/v1/device/1/sensor/1/datapoints </pre> 返回传感器 20120712T11:30:20 时的数据: <pre> curl --request GET --header "x-key: YOUR_UUID" http://api.easyhomelink.org/v1/device/1/sensor/1/datapoint/20120712T11:30:20 </pre> <br><br>
返回到
Cloud Of Things API
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面