Adafruit
Adafruit IO is an IoT data platform and API for collecting, storing, and controlling sensor and device data.
- Base URL:
https://io.adafruit.com/api/v2 - Auth:
header:X-AIO-Key(pass your key via theapiKeyinput)
Operations
currentuser— GET /user — Get information about the current userallactivities— GET /{username}/activities — All activities for current usergetactivity— GET /{username}/activities/{type} — Get activities by type for current useralldashboards— GET /{username}/dashboards — All dashboards for current userallblocks— GET /{username}/dashboards/{dashboard_id}/blocks — All blocks for current usergetblock— GET /{username}/dashboards/{dashboard_id}/blocks/{id} — Returns Block based on ID
Inputs
apiKey— your adafruit API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: currentuser
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: currentuser, allactivities, getactivity, alldashboards, allblocks, getblock |
dashboard_id |
string | no | — | Path parameter dashboard_id (required by some operations). |
id |
string | no | — | Path parameter id (required by some operations). |
type |
string | no | — | Path parameter type (required by some operations). |
username |
string | no | — | Path parameter username (required by some operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |