Versions Compared

Key

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

...

You can acquire the data from API by using curl command

Using CURL

Get all Sensors in JSON format

Currently, pulling sensors does not require authentication.

...

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


Authenticate

InputsOutputDetails
  • url
  • email
  • password
X-Auth-TokenUse the token for fetching datapoints

...

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


Get all Datapoints for Single Sensor

We request that a user not try to pull all datapoints concurrently.  It is preferred that datapoints be pulled in series by sensor id.

...