read(…)

Request to read the current employee assigned to tracker, and when it was assigned.

parameters:

name description type
tracker_id Id of the tracker (aka “object_id”). Tracker must belong to authorized user and not be blocked. Int

return:

{
  "success": true,
  "current": { //current employee info, standard employee object, CAN BE NULL
    "id": 1,
    "icon_id": 55,
    "tracker_id": 560,
    "first_name": "John",
    "middle_name": "M",
    "last_name": "Johnson",
    "email": "",
    "phone": "",
    "driver_license_number": "34534545",
    "driver_license_cats": "AB, sgeg",
    "driver_license_valid_till": "2015-06-04",
    "hardware_key": "ab8def",
    "department_id": null,
    "location": {
      "lat": 0.0,
      "lng": 0.0,
      "address": ""
    }
  },
  "last_change": { //information about when did last change occur, MAY BE NULL
    "id": 25,
    "old_employee_id": null, //can be null
    "new_employee_id": 1, //can be null
    "location": { //where did ths
      "lat": 11.0,
      "lng": 22.0,
      "address": "Haraze-Mangueigne"
    },
    "changed": "2016-11-17 17:01:20",
    "origin": "tracker", //"supervisor" or "tracker"
    "hardware_key": "ab8def" //hardware key used to change driver
  }
}

errors:

  • 201 – Not found in database (if there is no tracker with such id belonging to authorized user)
  • 208 – Device blocked (if tracker exists but was blocked due to tariff restrictions or some other reason)

If you have more questions please contact our support team

Contáctenos

USA: +1 858 815 9045

Mexico: +52 334 1642158

UK: +44 808 1641499

Germany: +49 1573 5988250

Russia: +7 495 223 0427

Log in

Login

[clean-login]

CLOSE
Register

[clean-login-register]

CLOSE
Loading...