Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, pulling sensors does not require authentication.

InputsOutputs Output typeO Output Example
url

JSON



Code Block
titleGet all Sensors
curl -X GET --compressed https://greatlakestogulf.org/geostreams/api/sensors


Authenticate

Inputs
  • url
  • email
  • password


Code Block
titleAuthenticate
curl -X POST -H 'Content-Type: application/json' -d '{"password": "****", "identifier": "email"}' --compressed -i https://greatlakestogulf.org/geostreams/api/authenticate



taskcurlinputsinstructionsreturns
authenticate

curl -X POST -H 'Content-Type: application/json' -d '{"password": "****", "identifier": "email"}' --compressed -i https://greatlakestogulf.org/geostreams/api/authenticate

  • password
  • email
In the response will be X-Auth-Token: followed by the alphanumeric security tokenX-Auth-Token
get all datapoints for a single sensorcurl -X GET -H 'Content-Encoding: application/json' -H 'x-auth-token:token' --compressed 'https://greatlakestogulf.org/geostreams/api/datapoints?sensor_id=22&since=2018-06-01'
  • token
  • sensor_id
  • since
Use X-Auth-Token from authenticationjson

...