List Your Public Channels
使用 HTTP GET 列出用户名的通道
请求
HTTP方法
GET
URL
https://api.thingspeak.com/users/
<user_id>
/channels.<format>
URL 参数
名称 | 描述 |
---|---|
| (必需)感兴趣的通道的用户 ID。 |
| (必需)HTTP 响应的格式,指定为 |
示例: https://api.thingspeak.com/users/cstapels/channels.json
查询字符串参数
名称 | 描述 | 值类型 |
---|---|---|
tag | (可选)指定要在公共通道中搜索的标签。 | 字符串 |
响应
成功
HTTP 状态代码
200 OK
主体
GET https://api.thingspeak.com/users/iothans/channels.json |
响应是通道设置的 JSON 数组,示例: { "channels": [ { "id": 3, "name": "ioBridge Server", "description": "ioBridge IO-204 connected to web server to report temperatures to ThingSpeak", "latitude": "0.0", "longitude": "0.0", "created_at": "2010-12-03T14:26:23Z", "elevation": "", "last_entry_id": 365190, "public_flag": true, "url": "https://www.iobridge.com", "ranking": 85, "tags": [ { "id": 24, "name": "temperature" }, { "id": 317, "name": "iobridge" } ] }, { "id": 9, "name": "my_house", "description": "Netduino Plus connected to sensors around the house", "latitude": "40.44", "longitude": "-79.9965", "created_at": "2010-12-14T01:20:06Z", "elevation": "", "last_entry_id": 13541195, "public_flag": true, "url": "https://nothans.com/thingspeak-building-my-own-twitter-for-things", "ranking": 100, "tags": [ { "id": 9, "name": "temp" }, { "id": 25, "name": "light" }, { "id": 3, "name": "sensor" } ] }, { "id": 212, "name": "Digital Step Demo", "description": "", "latitude": "0.0", "longitude": "0.0", "created_at": "2011-03-29T20:05:20Z", "elevation": "", "last_entry_id": 8, "public_flag": true, "url": "", "ranking": 15, "tags": [] } ] } |
GET https://api.thingspeak.com/users/iothans/channels.xml |
响应是通道设置的 XML 数组,示例: <response> <channels type="array"> <channel> <id type="integer">3</id> <name>ioBridge Server</name> <description> ioBridge IO-204 connected to web server to report temperatures to ThingSpeak </description> <latitude type="decimal">0.0</latitude> <longitude type="decimal">0.0</longitude> <created-at type="dateTime">2010-12-03T14:26:23Z</created-at> <elevation/> <last-entry-id type="integer">365191</last-entry-id> <public-flag type="boolean">true</public-flag> <url>https://www.iobridge.com</url> <ranking type="integer">85</ranking> <tags type="array"> <tag> <id type="integer">24</id> <name>temperature</name> </tag> <tag> <id type="integer">317</id> <name>iobridge</name> </tag> </tags> </channel> <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.9965</longitude> <created-at type="dateTime">2010-12-14T01:20:06Z</created-at> <elevation/> <last-entry-id type="integer">13541215</last-entry-id> <public-flag type="boolean">true</public-flag> <url> https://nothans.com/thingspeak-building-my-own-twitter-for-things </url> <ranking type="integer">100</ranking> <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> </channel> <channel> <id type="integer">212</id> <name>Digital Step Demo</name> <description/> <latitude type="decimal">0.0</latitude> <longitude type="decimal">0.0</longitude> <created-at type="dateTime">2011-03-29T20:05:20Z</created-at> <elevation/> <last-entry-id type="integer">8</last-entry-id> <public-flag type="boolean">true</public-flag> <url/> <ranking type="integer">15</ranking> <tags type="array"/> </channel> </response> |
错误
完整列表请参见 错误代码。
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)