Get the logs from a specified time-interval

getTravelTimes(p_companyID, p_exportTimeFrom, p_exportTimeTo, p_locationId, p_userId)

 

You can use this endpoint to retrieve set of logs from our software.

Parameters

Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)
p_exportTimeFrom string Yes The start of the periode, datetime formatted string (yyyy-mm-dd hh:ii:ss)
p_exportTimeTo string Yes The end of the periode, datetime formatted string (yyyy-mm-dd hh:ii:ss)
p_locationId integer No If provided we retrieve the logs for that specific location
p_userId integer No If provided we retrieve the logs for that specific user

Return values

getTravelTimesObjectArray (array), containing structs (arrays) of getTravelTimesObject with the following keys:

Name Type Description
UserID integer The id of from the users table, the id of the user
Firstname string The firstname of the user
Lastname string The lastname of the user
StartTravelTime integer The time of the start travel time, datetime formatted string (yyyy-mm-dd hh:ii:ss)
StartLocationId string On which location id the Start travel action has been made
StartLocationName string On which location the Start travel action has been made
StartTerminal string On which module the Start travel action has been made (serial_number) - this field is also used to return possible error message when the case
StartTerminalName integer On which module the Start travel action has been made (name)
EndTravelTime string The time of the end travel time, datetime formatted string (yyyy-mm-dd hh:ii:ss)
EndLocationId integer On which location id the End travel action has been made
EndLocationName integer On which location the End travel action has been made
EndTerminal integer On which module the End travel action has been made (serial_number)
EndTerminalName integer On which module the End travel action has been made (name)


NOTE 1*:
In case there is no result set to be returned, we send a "-1 NO RECORD" message in the Terminal field.


NOTE 2*:
In case there is > 4000 records to be returned by our wsdl, we display a warning message in the Terminal field, asking the user to use a smaller time frame to filter the logs.

Sample

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uen="uen:esws">
<soapenv:Header/>
<soapenv:Body>
<uen:Esws.getTravelTimes soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aOLqVu0</p_companyID>
<p_exportTimeFrom xsi:type="xsd:string">2021-01-06 10:00:00</p_exportTimeFrom>
<p_exportTimeTo xsi:type="xsd:string">2021-01-06 18:00:00</p_exportTimeTo>
<p_locationId xsi:type="xsd:string">12</p_locationId>
<p_userId xsi:type="xsd:string">234</p_userId>
</uen:Esws.getTravelTimes>
</soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="uen:esws">
<SOAP-ENV:Body>
<ns1:Esws.getTravelTimesResponse xmlns:ns1="uen:esws">
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:getTravelTimesObject[2]">
<item xsi:type="tns:getTravelTimesObject">
<UserID xsi:type="xsd:string">2434</UserID>
<Firstname xsi:type="xsd:string">Elmer</Firstname>
<Lastname xsi:type="xsd:string">Fudge</Lastname>
<StartTravelTime xsi:type="xsd:string">2021-07-29 11:19:05</StartTravelTime>
<StartLocationId xsi:type="xsd:string">3</StartLocationId>
<StartLocationName xsi:type="xsd:string">Location 2</StartLocationName>
<StartTerminal xsi:type="xsd:string">541610101</StartTerminal>
<StartTerminalName xsi:type="xsd:string">BioEntry P2</StartTerminalName>
<EndTravelTime xsi:type="xsd:string">
<EndLocationId xsi:type="xsd:string">
<EndLocationName xsi:type="xsd:string">
<EndTerminal xsi:type="xsd:string">
<EndTerminalName xsi:type="xsd:string">
</item>
<item xsi:type="tns:getTravelTimesObject">
<UserID xsi:type="xsd:string">2343</UserID>
<Firstname xsi:type="xsd:string">Elmer</Firstname>
<Lastname xsi:type="xsd:string">Fudge</Lastname>
<StartTravelTime xsi:type="xsd:string">2021-08-14 13:19:05</StartTravelTime>
<StartLocationId xsi:type="xsd:string">3</StartLocationId>
<StartLocationName xsi:type="xsd:string">Location 2</StartLocationName>
<StartTerminal xsi:type="xsd:string">541610101</StartTerminal>
<StartTerminalName xsi:type="xsd:string">BioEntry P2</StartTerminalName>
<EndTravelTime xsi:type="xsd:string">2021-09-10 16:19:05</EndTravelTime>
<EndLocationId xsi:type="xsd:string">3</EndLocationId>
<EndLocationName xsi:type="xsd:string">Location 2</EndLocationName>
<EndTerminal xsi:type="xsd:string">541610</EndTerminal>
<EndTerminalName xsi:type="xsd:string">BioEntry P2</EndTerminalName>
</item>
</return>
</ns1:Esws.getTravelTimesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>