Trackunit API

<back to all web services

GetReportKeyHistory

The following routes are available for this service:
GET POST/report/keyhistory
GetReportKeyHistory Parameters:
NameParameterData TypeRequiredDescription
KeyIdbodystringNo
FrombodyDateTime?No
TobodyDateTime?No
GetReportKeyHistoryResponse Parameters:
NameParameterData TypeRequiredDescription
ListformList<KeyHistory>No
ResponseStatusformResponseStatusNo
KeyHistory Parameters:
NameParameterData TypeRequiredDescription
UnitIdformstringNo
TimeformDateTimeNo
LocationformLocationNo
AddressformAddressNo
Headingformint?No
Speedformdouble?No
Kmformdouble?No
Run1formdouble?No
Run2formdouble?No
RunOdoformdouble?No
Temperature1formdouble?No
Temperature2formdouble?No
Input1formbool?No
Input2formbool?No
Output3formbool?No
BatteryLevelformdouble?No
ExternalPowerformdouble?No
Location Parameters:
NameParameterData TypeRequiredDescription
LatitudeformdoubleNo
LongitudeformdoubleNo
Address Parameters:
NameParameterData TypeRequiredDescription
CountryformstringNo
ZipCodeformstringNo
CityformstringNo
StreetAddressformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/GetReportKeyHistory HTTP/1.1 
Host: api.trackunit.com 
Content-Type: application/json
Content-Length: length

{"keyId":"String","from":"0001-01-01T00:00:00.0000000Z","to":"0001-01-01T00:00:00.0000000Z"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"list":[{"unitId":"String","time":"0001-01-01T00:00:00.0000000Z","location":{"latitude":0,"longitude":0},"address":{"country":"String","zipCode":"String","city":"String","streetAddress":"String"},"heading":0,"speed":0,"km":0,"run1":0,"run2":0,"runOdo":0,"temperature1":0,"temperature2":0,"input1":false,"input2":false,"output3":false,"batteryLevel":0,"externalPower":0}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}