Read Settings
Lire les paramètres du canal avec HTTP GET
Requête
Méthode HTTP
GET
URL
https://api.thingspeak.com/channels/
<channel_id>
.<format>
Paramètres d'URL
Nom | Description |
---|---|
| (Required) Channel ID for the channel of interest. |
| (Required) Format for the HTTP response, specified as |
Example: https://api.thingspeak.com/channels/266256.json
Paramètres de chaîne de requête
Nom | Description | Type de valeur |
---|---|---|
api_key | (Obligatoire pour les canaux privés) Spécifiez la clé API utilisateur, que vous pouvez trouver dans votre profile. Cette clé est différente des clés d'API de canal . | chaîne de caractère |
Réponse
Erreur
For the full list, see Codes d'erreur.
Exemples
Afficher les paramètres du canal
You can use your web browser to complete GET HTTP requests to the RESTful API for ThingSpeak™.
To see the format for an HTTP response, copy the following URL to the address bar of your web browser, changing
to your channel ID and <channel_ID>
to your User API Key, which is found in Account > My Profile.<XXXXXXXXXXXXXXXX>
https://api.thingspeak.com/channels/<channel_ID>.json?api_key=<XXXXXXXXXXXXXXXX>
La réponse est un objet JSON des paramètres du canal , comme indiqué dans la section réponse.