このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。
List Channels
HTTP GETを使用してパブリックチャネルを一覧表示する
要求
HTTP メソッド
GET
URL
https://api.thingspeak.com/channels/public.
<format>
入力引数
名前 | 説明 |
---|---|
| (必須) HTTP 応答の形式。 |
≪例:≫ https://api.thingspeak.com/channels/public.json
クエリ文字列パラメーター
この要求に使用できるパラメーターはありません。
対応
成功
200 OK
GET https://api.thingspeak.com/channels/public.json |
応答は公開チャネルの JSON オブジェクトです。次に例を示します。 { "pagination": { "current_page": 1, "per_page": 15, "total_entries": 653 }, "channels": [ { "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, "ranking" :100, "username":"iothans", "tags": [ { "id": 9, "name": "temp" },{ "id": 25, "name": "light" } ] }, { "id": 5683, "name": "Residential Data Points", "description": "Arduino Uno + Ethernet Shield", "latitude": "35.664548", "longitude": "-78.654972", "created_at": "2013-05-15T12:33:57-04:00", "elevation": "100", "last_entry_id": 731713, "ranking": 100, "username": "samlro", "tags": [ { "id": 950, "name": "Analog Inputs" } ] } ] } |
GET https://api.thingspeak.com/channels/public.xml |
応答は公開チャネルの XML オブジェクトです。次に例を示します。 <?xml version="1.0" encoding="UTF-8"?> <response> <pagination> <current-page type="WillPaginate::PageNumber">1</current-page> <per-page type="integer">15</per-page> <total-entries type="integer">654</total-entries> </pagination> <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> <ranking type="integer">100</ranking> <username>iothans</username> <tags type="array"> <tag> <id type="integer">9</id> <name>temp</name> </tag> <tag> <id type="integer">25</id> <name>light</name> </tag> </tags> </channel> <channel> <id type="integer">5683</id> <name>Residential Data Points</name> <description>Arduino Uno + Ethernet Shield</description> <latitude type="decimal">35.664548</latitude> <longitude type="decimal">-78.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> <ranking type="integer">100</ranking> <username>samlro</username> <tags type="array"> <tag> <id type="integer">950</id> <name>Analog Inputs</name> </tag> </tags> </channel> </channels> </response> |
エラー
完全なリストについては、エラー コード を参照してください。
例
JSON形式でチャネルをリストする
https://api.thingspeak.com/channels/public.json
Web ブラウザを使用して、 ThingSpeak™の RESTful API へのGET HTTP要求を完了できます。HTTP 応答の形式を確認するには、リンクをクリックするか、ブラウザにコピーします。
XML 形式でチャネルをリストする
https://api.thingspeak.com/channels/public.xml
Web ブラウザを使用して、 ThingSpeakの RESTful API へのGET HTTP要求を完了できます。HTTP 応答の形式を確認するには、リンクをクリックするか、ブラウザにコピーします。
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)