How to View Fuel Fill-Ups through the SDK

Related Questions

  • How to View Fill-Up Events through the SDK?

Applies To

  • MyGeotab
  • SDK

Procedure

  1. Navigate to the API runner https://geotab.github.io/sdk/software/api/runner.html
  2. Login to the corresponding server
  3. Run the following API call to view the Fuel Fill-Ups for a Vehicle
    • api.call("Get", {
      "typeName": "FuelUpEvent",
      "search": {
      "DeviceSearch": {"id":"b81"},
      "fromDate":"2019-04-01T00:00:00.000Z",
      "toDate":"2019-04-06T00:00:00.000Z"
      }
      }, function(result) {
      console.log("Done: ", result);
      }, function(e) {
      console.error("Failed:", e);
      });

Additional Notes

  • Modify the fromDate, toDate and the Device ID accordingly
  • The timestamp in fromDate and toDate are in UTC