Browse Source

API docs: Add datetime=now keyword to fetch-data docs

pull/26/head
Starbeamrainbowlabs 4 years ago
parent
commit
622b19392c
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 3
      README.md

3
README.md

@ -85,7 +85,7 @@ The server-side API is accessed through `api.php`, and supports a number of GET @@ -85,7 +85,7 @@ The server-side API is accessed through `api.php`, and supports a number of GET
Parameter | Type | Meaning
--------------------|-----------|---------------------
`datetime` | date/time | Required. Specifies the date and time for which readings are desired.
`datetime` | date/time | Required. Specifies the date and time for which readings are desired. For current data use the special keyword `now`.
`reading_type` | string | Required. Specifies the type of reading desired.
`format` | string | Optional. Specifies the format that the response will be returned in. Valid values: `json`, `csv`. Default: `json`.
@ -93,6 +93,7 @@ Examples: @@ -93,6 +93,7 @@ Examples:
```
https://example.com/path/to/api.php?action=fetch-data&datetime=2019-01-03%2007:52:10&reading_type=PM10
https://example.com/path/to/api.php?action=fetch-data&datetime=now&reading_type=PM10
```
### list-devices

Loading…
Cancel
Save