List Your Channels
使用 HTTP GET 列出您的通道
请求
HTTP 方法
GET
URL
https://api.thingspeak.com/channels.
<format>
输入参量
名称 | 描述 |
---|---|
| (必需)HTTP 响应的格式,指定为 |
示例: https://api.thingspeak.com/channels.json
查询字符串参数
名称 | 描述 | 值类型 |
---|---|---|
api_key | (必填)指定用户 API 密钥,您可以在个人资料中找到该密钥。此密钥与通道 API 密钥不同。 | 字符串 |
tag | (可选)指定要在通道中搜索的标签。 | 字符串 |
Content-Type
application/x-www-form-urlencoded
响应
成功
200 OK
GET https://api.thingspeak.com/channels.json?api_key=XXXXXXXXXXXXXXXX |
如果您使用付费帐户,响应是您的通道的 JSON 对象,并带有 [ { "id": 9, "name": "my_house", "description": "Netduino Plus connected to sensors around the house", "latitude": "40.44", "longitude": "-79.996", "created_at": "2010-12-13T20:20:06-05:00", "elevation": "", "last_entry_id": 6062691, "public_flag": true "url": "" "ranking" :100, "metadata": "", "license_id": 40526371, "tags": [ { "id": 9, "name": "temp" }, { "id": 25, "name": "light" }, { "id": 3, "name": "sensor" } ] "api_keys": [ { "api_key": "XXXXXXXXXXXXXXXX", "write_flag": true } { "api_key": "YYYYYYYYYYYYYYYY", "write_flag": false } ] }, { "id": 5683, "name": "Residential Data Points", "description": "Connected Arduino", "latitude": "32.664548", "longitude": "-73.654972", "created_at": "2013-05-15T12:33:57-04:00", "elevation": "100", "last_entry_id": 731713, "public_flag": true "url": "" "ranking": 100, "metadata": "", "license_id": 40526371, "tags": [], "api_keys": [ { "api_key": "XXXXXXXXXXXXXXXX", "write_flag": true } { "api_key": "YYYYYYYYYYYYYYYY", "write_flag": false } ] } ] |
GET https://api.thingspeak.com/channels.xml?api_key=XXXXXXXXXXXXXXXX |
如果您使用付费帐户,则响应是您的通道的 XML 对象并具有 <?xml version="1.0" encoding="UTF-8"?> <channels type="array"> <channel> <id type="integer">9</id> <name>my_house</name> <description> Netduino Plus connected to sensors around the house </description> <latitude type="decimal">40.44</latitude> <longitude type="decimal">-79.996</longitude> <created-at type="dateTime">2010-12-13T20:20:06-05:00</created-at> <elevation/> <last-entry-id type="integer">6062720</last-entry-id> <public-flag type="boolean">true</public-flag> <url/> <ranking type="integer">100</ranking> <metadata/> <license_id type="integer">40526371</license_id> <tags type="array"> <tag> <id type="integer">9</id> <name>temp</name> </tag> <tag> <id type="integer">25</id> <name>light</name> </tag> <tag> <id type="integer">3</id> <name>sensor<name> </tag> </tags> <api-keys type="array"> <api-key> <api-key>XXXXXXXXXXXXXXXX</api-key> <write-flag type="boolean">true</write-flag> </api-key> <api-key> <api-key>YYYYYYYYYYYYYYYY</api-key> <write-flag type="boolean">false</write-flag> </api-key> </api-keys> </channel> <channel> <id type="integer">5683</id> <name>Residential Data Points</name> <description>Connected Arduino</description> <latitude type="decimal">32.664548</latitude> <longitude type="decimal">-73.654972</longitude> <created-at type="dateTime">2013-05-15T12:33:57-04:00</created-at> <elevation>100</elevation> <last-entry-id type="integer">731720</last-entry-id> <public-flag type="boolean">true</public-flag> <url/> <ranking type="integer">100</ranking> <metadata/> <license_id type="integer">40526371</license_id> <tags type="array" /> <api-keys type="array"> <api-key> <api-key>XXXXXXXXXXXXXXXX</api-key> <write-flag type="boolean">true</write-flag> </api-key> <api-key> <api-key>YYYYYYYYYYYYYYYY</api-key> <write-flag type="boolean">false</write-flag> </api-key> </api-keys> </channel> </channels> |
错误
完整列表请参阅错误代码。
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)