API Reference


This method retrieves data from the audit log.


bool vhost.getAuditLog ( int vhost, int uid = NULL, int subjectid = NULL, timestamp startDate = NULL, timestamp endDate = NULL )


NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe vhost id
uidintOptionalNULLThe user id
subjectidintOptionalNULLThe id of the subject in question (Eg. User ID, Media ID, App ID, Vhost ID)
startDatetimestampOptionalNULLTimestamp of start date for results
endDatetimestampOptionalNULL Timestamp of end date for results


Bellow you will find a description of what is returned by this service

auditidUnique ID for each entry in the audit log.
vhostVhost of the entry in the audit log
uidUser ID of the user who took the action.
action_timeTime the action took place.
actionThe action that took place.
infoDescriptive text of the action, action time and subject.
subjectidThe subject that was acted upon, could be a media id, user id, application id, translation id.

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<action_time>2013-04-01 12:17:51</action_time>
<info>voytek.manowiec: doing something at 2013-04-01 12:17:51</info>
Sample JSON Response
    "status": true,
    "result": {
       "item": {
        	"auditid": "55918",
        	"vhost": "218",
        	"action_time": "2013-04-01 12:17:51",
        	"info": "username: doing something at 2013-04-01 12:17:51",

Code examples


Be the first to comment on getAuditLog.

Add a Comment

  • captcha