parent
ffc0e7c72e
commit
30bff79e17
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ Note that there are endpoints for submitting multiple data points to a feed, and
|
||||||
> <div class="http"><span class="method-post">POST</span><code class="path">/api/v2/{username}/feeds/{feed_key}/data</code></div>
|
> <div class="http"><span class="method-post">POST</span><code class="path">/api/v2/{username}/feeds/{feed_key}/data</code></div>
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Send new data with a value of 42
|
# Send new data with a value of 42 (note: using single quotes instead prevents variable expansion etc in bash)
|
||||||
$ curl -F 'value=42' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
$ curl -F "value=42" -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
||||||
|
|
||||||
# Send new data with a value of 42 and include optional location metadata
|
# Send new data with a value of 42 and include optional location metadata
|
||||||
curl -H "Content-Type: application/json" -d '{"value": 42, "lat": 23.1, "lon": "-73.3"}' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
curl -H "Content-Type: application/json" -d '{"value": 42, "lat": 23.1, "lon": "-73.3"}' -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue