Versions Compared

Key

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

...

taskcurlinputsinstructionsreturns
get all sensorscurl -X GET -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'User-Agent: python-requests/2.19.1' --compressed https://greatlakestogulf.org/geostreams/api/sensors

json
authenticate

curl -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Length: 63' -H 'Content-Type: application/json' -H 'User-Agent: python-requests/2.19.1' -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 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Encoding: application/json' -H 'User-Agent: python-requests/2.19.1' -H 'x-auth-token: token' --compressed 'https://greatlakestogulf.org/geostreams/api/datapoints?sensor_id=22&since=20172018-06-01'
  • token
  • sensor_id
  • since
Use X-Auth-Token from authenticationjson

...