Hauptinhalt

Diese Seite wurde mithilfe maschineller Übersetzung übersetzt. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Get All TalkBack Commands

Holen Sie sich alle TalkBack-Befehle aus der TalkBack-Warteschlange

Anfrage

HTTP-Methode

GET

URL

https://api.thingspeak.com/talkbacks/<talkback_id>/commands/.<format>

Eingabeargumente

NameBeschreibung

<talkback_id>

(Erforderlich) TalkBack-ID, angegeben als positive Ganzzahl.

<format>

Format für die HTTP-Antwort, angegeben als json oder xml.

Beispiel: https://api.thingspeak.com/talkbacks/12345/commands.json

Abfragezeichenfolgenparameter

NameBeschreibungWerttyp
api_key

(Erforderlich) API-Schlüssel für diese spezielle Instanz von TalkBack. Der TalkBack-Schlüssel unterscheidet sich von den Kanal- und Benutzer-API-Schlüsseln.

Zeichenfolge

Inhaltstyp

application/x-www-form-urlencoded

Antwort

Erfolg

HTTP-Statuscode

200 OK

Körper

Die Beispielantworten basieren auf dieser Beispiel-TalkBack-Warteschlange.

Geben Sie <format> leer an, um die Antwort im Textformat zu erhalten.

GET https://api.thingspeak.com/talkbacks/12345/commands?api_key=XXXXXXXXXXXXXXXX

Beispielantwort

"OPENDOOR","CLOSEDOOR","BUCLKESHOE"
GET https://api.thingspeak.com/talkbacks/12345/commands.json?api_key=XXXXXXXXXXXXXXXX

Antwort

[
{
"id": 15200360,
"command_string": "OPENDOOR",
"position": 1,
"executed_at": null,
"created_at": "2019-02-20T14:22:02Z"
},
{
"id": 15200361,
"command_string": "CLOSEDOOR",
"position": 2,
"executed_at": null,
"created_at": "2019-02-20T14:22:07Z"
},
{
"id": 15200362,
"command_string": "BUCKLESHOE",
"position": 3,
"executed_at": null,
"created_at": "2019-02-20T14:25:02Z"
}
]
GET https://api.thingspeak.com/talkbacks/12345/commands/2448500.xml?api_key=XXXXXXXXXXXXXXXX

Antwort

<commands type="array">
<command>
<id type="integer">15200360</id>
<command-string>OPENDOOR</command-string>
<position type="integer">1</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:22:02Z</created-at>
</command>
<command>
<id type="integer">15200361</id>
<command-string>roofCLOSEDOORinteger">2</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:22:07Z</created-at>
</command>
<command>
<id type="integer">15200362</id>
<command-string>BUCKLESHOE</command-string>
<position type="integer">3</position>
<executed-at type="dateTime" nil="true"/>
<created-at type="dateTime">2019-02-20T14:25:02Z</created-at>
</command>
</commands>

Fehler

Die vollständige Liste finden Sie unter Fehlercodes.