メインコンテンツ

このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。

List Your Public Channels

HTTP GETでユーザー名のチャネルを一覧表示する

要求

HTTPメソッド

GET

URL

https://api.thingspeak.com/users/<user_id>/channels.<format>

URLパラメーター

名前説明

<user_id>

(必須) 関心のあるチャネルのユーザー ID。

<format>

(必須) HTTP 応答の形式。json または xml として指定します。

例: https://api.thingspeak.com/users/cstapels/channels.json

クエリ文字列パラメーター

名前説明値のタイプ
tag

(オプション) パブリックチャネルで検索するタグを指定します。

string

応答

成功

HTTPステータスコード

200 OK

Body
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": 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">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>

エラー

完全なリストについては、エラーコード を参照してください。