Versions Compared

Key

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

...

5. Fire "temperatureChanged" event using REST API


  1. Check out the GadgetkeeperAPI - Datapoints page for details on how to fire an event (create datapoint) on GadgetKeeper API using cURL or a REST API tool
  2. Obtain required parameters:
    • To obtain the Thing Id, see instructions here.
    • Obtain "temperatureChanged" event Id. See instructions here.
    • To create an API Key, see instructions here.

      4. Use API Explorer to perform REST calls using UI
      5. Use cURL to perform REST calls using command linesline:

Code Block
languagebash
 curl -i -X POST -H "X-ApiKey: <API_KEY>" -H "Content-Type: text/json; charset=UTF-8" -d '[{"value":52.56,"at":"2013-06-02T21:05:04.150Z"}]' "http://api.gadgetkeeper.com/v1/things/<THING_ID>/events/<EVENT_ID>/datapoints.json"