Use this call to return inspection information for a specified inspection that occur within a specified time period. You can filter results based on inspection status and location.
Request Data
Required Information | |
---|---|
Name | Description |
action | showopen |
operation | insptimecard |
format | xml |
start | epoch timestamp |
end | epoch timestamp |
cfg | string name of inspection type |
version | 2 - This call is only available in version 2 of the API |
tstype |
|
status |
|
Optional Information | |
location | String name of location, only show inspections that occurred in this location. |
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=showopen&operation=insptimecard&format=xml&version=2&start=1308009600&end=1310601600&cfg=DEMO1I-3.4.0&customer=qa1&tstype=insp&status=all
Data Returned
DTD
<!ELEMENT insplist(insp*) >
<!ATTLIST insplist count CDATA>
<!ATTLIST insplist ver CDATA>
<!ELEMENT insp(data*)>
<!ATTLIST insp id CDATA>
<!ATTLIST insp timestamp CDATA>
<!ATTLIST insp stat CDATA>
<!ATTLIST insp fleet CDATA>
<!ATTLIST insp operator CDATA>
<!ATTLIST insp optag CDATA>
<!ATTLIST insp repair CDATA>
<!ATTLIST insp loadlocation CDATA>
<!ATTLIST insp starttime CDATA>
<!ATTLIST insp endtime CDATA>
<!ATTLIST insp extractor CDATA>
<!ATTLIST insp config CDATA>
<!ATTLIST insp manual CDATA>
<!ATTLIST insp verified CDATA>
<!ATTLIST insp assetid CDATA>
<!ATTLIST insp opid CDATA>
<!ATTLIST insp defect CDATA>
<!ATTLIST insp assetvalue CDATA>
<!ATTLIST insp cfglabel CDATA>
<!ATTLIST insp loadtime CDATA>
<!ATTLIST insp sn CDATA>
<!ATTLIST insp asset_exsid CDATA>
<!ATTLIST insp operator_exsid CDATA>
<!ELEMENT data>
<!ATTLIST data name CDATA>
<!ATTLIST data val CDATA>
<!ATTLIST data type CDATA>
Example Reply
<?xml version="1.0" encoding="UTF-8"?>
<insplist ver="2" count="2">
<insp id="1127" timestamp="1308605509" stat="G" fleet="DaveD_4210022" operator="Dave, Doneux" optag="52700026" repair="0" loadlocation="GPS: 32161 " starttime="1308605504" endtime="1308605520" extractor="UNK" config="DEMO1I-3.4.0" manual="0" verified="1" assetid="62" opid="6" defect="0" assetvalue="-1" cfglabel="FUEL/HRS/TREAD/RT" loadtime="1308605542" sn="10211402" asset_exsid="EXSID123" operator_exsid="">
<data name="DATA - FUEL" val="2" type="INT"/>
</insp>
<insp id="1126" timestamp="1308605400" stat="G" fleet="DaveD_4210022" operator="Dave, Doneux" optag="52700026" repair="0" loadlocation="GPS: 32161 " starttime="1308605392" endtime="1308605428" extractor="UNK" config="DEMO1H-3.4.0" manual="0" verified="1" assetid="62" opid="6" defect="0" assetvalue="32" cfglabel="TRK PRE- TRIP NEW" loadtime="1308605464" sn="10211402" asset_exsid="EXSID123" operator_exsid=""/>
</insplist>