Compare commits

...

5 commits

Author SHA1 Message Date
Loren Norman
1a6b52804e replace bad endpoint URL (copypasta?) 2025-05-27 12:59:07 -04:00
Tyeth Gundry
96d1685a41
Merge pull request #71 from adafruit/tyeth/issue69
Swap to double quotes for basic example
2025-04-22 16:02:21 +01:00
Tyeth Gundry
2b820602e4
Merge pull request #70 from adafruit/dependabot/bundler/nokogiri-1.18.8
Bump nokogiri from 1.18.3 to 1.18.8
2025-04-22 16:01:30 +01:00
Tyeth Gundry
30bff79e17
Swap to double quotes for basic example
This closes #69
2025-04-22 15:54:01 +01:00
dependabot[bot]
7d97b17e8b
Bump nokogiri from 1.18.3 to 1.18.8
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.18.3 to 1.18.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.18.3...v1.18.8)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-version: 1.18.8
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 04:46:48 +00:00
3 changed files with 7 additions and 8 deletions

View file

@ -7,7 +7,7 @@ gem 'middleman', '~> 4.5.0'
gem 'middleman-autoprefixer', '~> 3.0.0'
gem 'middleman-sprockets', '~> 4.1.1'
gem 'middleman-syntax', '~> 3.2.0'
gem 'nokogiri', '~> 1.18.3'
gem 'nokogiri', '~> 1.18.8'
gem 'rack', '~> 2.2.13'
gem 'redcarpet', '~> 3.6.0'
gem 'rouge', '~> 3.30.0'

View file

@ -81,7 +81,7 @@ GEM
rouge (~> 3.2)
mini_portile2 (2.8.8)
minitest (5.20.0)
nokogiri (1.18.3)
nokogiri (1.18.8)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
padrino-helpers (0.15.3)
@ -127,7 +127,7 @@ DEPENDENCIES
middleman-autoprefixer (~> 3.0.0)
middleman-sprockets (~> 4.1.1)
middleman-syntax (~> 3.2.0)
nokogiri (~> 1.18.3)
nokogiri (~> 1.18.8)
rack (~> 2.2.13)
redcarpet (~> 3.6.0)
rouge (~> 3.30.0)

View file

@ -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>
```shell
# Send new data with a value of 42
$ 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 (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
# 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
@ -655,8 +655,8 @@ Example for `group_feed_data` in the body is as follows: `{ feeds: [ { key: stri
> <div class="http"><span class="method-get">GET</span><code class="path">/api/v2/{username}/groups/{group_key}/feeds/{feed_key}/data</code></div>
```shell
# Send new data with a value of 42 to the group's feeds as json
$ curl -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/groups/{group_key}/data.json -d '{"feeds":[{"key":"{feed_key}","value":42}]}'
# Get data from the given Feed in the given Group
$ curl -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/groups/{group_key}/feeds/{feed_key}/data
```
```python
@ -767,4 +767,3 @@ feed_key | string | true | a valid feed key
Parameter | Type | Required | Description
--------- | ------- | --------- | -----------------------
data | array | true | A collection of data records including `value` (required) and optionally including: `lat`, `lon`, `ele` (latitude, longitude, and elevation values), and `created_at` (a date/time string).