Authorization
header that includes the access token to the account:Authorization
header along with the keyword Bearer
. It can be also included as a URL parameter in the HTTP request, with the key authorization
(case-sensitive), and the token as the value.Access Tokens
section. The following picture illustrates how to add permissions to the token for writing to a single bucket, but you can configure them for granting access to different resources and actions of your account.exp
field is the unix timestamp in seconds (UTC) when the token will expire. If your request is after this timestamp, then, the request will fail.401 Unautorized
.?authorization=eyJhbGci...
.?authorization=eyJhbGciOi...
token_resources
and token_expiration
fields are optional. Use this fields only if you need to limit the access to the device resources, or make the token expire at a given time in UTC.out
that stores your resource definition.alvarolb
, your device identifier is nodemcu
, and you have a resource in your device defined like this:alvarolb
, your device identifier is nodemcu
, and you have a resource in your device defined like this:alvarolb
, your device identifier is nodemcu
, and you have an input resource in your device defined like this, i.e., for turning on/off a relay:alvarolb
, your device identifier is nodemcu
, and you have an input resource in your device defined like this, i.e., for changing an RGB light color:alvarolb
, your device identifier is nodemcu
, and you have an input resource in your device defined like this, i.e., for executing a linux command, changing a text on a screen, etc:out
that stores your resource output.alvarolb
, your device identifier is nodemcu
, and you have an input/output resource io
in your device defined like this, i.e., for returning the sum and multiplication:alvarolb
, your device identifier is nodemcu
, and you have a resource reset
in your device defined like this, i.e., for rebooting the ESP8266 device.