Usuários




Resposta em: TEXTJSONXML

Obter Informações do Usuário


Para obter as informações de um usuário, envie um HTTP GET para thingspeak.nextcon.comusers/USERNAME.json.xml , substituindo USERNAME pelo nome de usuário da pessoa.

Parâmetros válidos:
  • api_key (string) - Chave de API do Usuário que, se fornecida, exibirá informações privadas como endereços de e-mail. (opcional)

Exemplo de GET:
GET thingspeak.nextcon.comusers/hans.json.xml

A resposta será uma página web com informações sobre o usuário.
A resposta será um objeto JSON do usuário, por exemplo:
{
  "id": 4,
  "login": "hans",
  "created_at": "2010-12-03T09:17:52-05:00",
  "bio": "Web Developer at Nextcon",
  "website": "http://www.iamshadowlord.com"
}
A resposta será um objeto XML do usuário, por exemplo:
<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id type="integer">4</id>
  <login>hans</login>
  <created-at type="dateTime">2010-12-03T09:17:52-05:00</created-at>
  <bio>Web Developer at Nextcon</bio>
  <website>http://www.iamshadowlord.com</website>
</user>

Resposta em: TEXTJSONXML

Listar Canais do Usuário


Para obter uma lista dos Canais de um usuário, envie um HTTP GET para thingspeak.nextcon.comusers/USERNAME/channels.json.xml , substituindo USERNAME pelo nome de usuário da pessoa.

Parâmetros válidos:
  • api_key (string) - Chave de API do Usuário que, se fornecida, também exibirá canais privados. (opcional)

Exemplo de GET:
GET thingspeak.nextcon.comusers/hans/channels.json.xml

A resposta será uma página web com uma lista dos Canais do usuário.
A resposta será um objeto JSON dos Canais do usuário, por exemplo:
{
  "channels":
  [
    {
      "id": 3,
      "name": "Server Monitor",
      "description": "Gateway connected to web server",
      "latitude": null,
      "longitude": null,
      "created_at": "2010-12-03T09:26:23-05:00",
      "elevation": "",
      "last_entry_id": 163690,
      "ranking": 85,
      "username": "hans",
      "tags":
      [
        {
          "id": 24,
          "name": "temperature"
        }
      ]
    },
    {
      "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": 6062844,
      "ranking": 100,
      "username": "hans",
      "tags":
      [
        {
          "id": 9,
          "name": "temp"
        },
        {
          "id": 25,
          "name": "light"
        }
      ]
    }
  ]
}
A resposta será um objeto XML dos Canais do usuário, por exemplo:
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <channels type="array">
    <channel>
      <id type="integer">3</id>
      <name>Server Monitor</name>
      <description>Gateway connected to web server</description>
      <latitude nil="true"/>
      <longitude nil="true"/>
      <created-at type="dateTime">2010-12-03T09:26:23-05:00</created-at>
      <elevation/>
      <last-entry-id type="integer">163690</last-entry-id>
      <ranking type="integer">85</ranking>
      <username>hans</username>
      <tags type="array">
        <tag>
          <id type="integer">24</id>
          <name>temperature</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.996</longitude>
      <created-at type="dateTime">2010-12-13T20:20:06-05:00</created-at>
      <elevation/>
      <last-entry-id type="integer">6062860</last-entry-id>
      <ranking type="integer">100</ranking>
      <username>hans</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>
  </channels>
</response>