You can use this endpoint to retrieve set of logs from our software.
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 |
p_infoFieldName | string | No | We can filter the logs to certain users looking based on this field, possible values: info1, info2, ..., info14 |
p_infoFieldValue | string | No | We can filter the logs to certain users looking for this value in the p_infoFieldName field (string) |
p_filterOn | string | No | We can filter the logs on certain fields: 'event_time' or 'created'. Default value is 'event_time'. If any other value is supplied than these 2 possible ones the default value will be used |
p_timeregistrationModules | integer | No | We can filter the logs made only on timeregistration modules by setting the value 1. Default value is 0 which means that we collect all the logs and not just from the timeregistration modules |
NOTE*:
If p_infoFieldName is not one of the info1, ..., info14 values than the search based on user info fields will not take place.
getLogsObjectArray (array), containing structs (arrays) of getLogsObject with the following keys:
Name | Type | Description |
---|---|---|
scanID | integer | The id of from the module_logs table, the id of the actual scan |
Terminal | string | On which device the action has been taken place on - this field is also used to return possible error message when the case |
TerminalKey | string | What type of the action was: IN, OUT, DUTY IN, DUTY OUT, TNA_1, TNA_2, TNA_3, TNA_4 |
UserID | string | The wsAltUserId (in case the company has the infolabel function set and the user has wsAltUserId value), otherwise we retrieve id of the user to which the action is related to. |
Time | string | When the action took place, datetime formatted string (yyyy-mm-dd hh:ii:ss) |
LocationId | integer | The id of the location where the event occured |
LocationName | string | The name of the location |
Success | integer | 1 in case of identify OK, else 0 (Access Not Granted, Verify Fail) |
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
Response