API Reference

Vhost.getAuditLog

This method retrieves data from the audit log.


Syntax

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

Arguments

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

Fields

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

NameDescription
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"?>
<result>
<item>
<auditid>55918</auditid>
<vhost>218</vhost>
<uid>1927314</uid>
<action_time>2013-04-01 12:17:51</action_time>
<action>uploadMedia</action>
<info>voytek.manowiec: doing something at 2013-04-01 12:17:51</info>
<subjectid>0</subjectid>
</item>
</result>
Sample JSON Response
{
    "status": true,
    "result": {
       "item": {
        	"auditid": "55918",
        	"vhost": "218",
        	"uid":"1927314",
        	"action_time": "2013-04-01 12:17:51",
        	"action":"uploadMedia",
        	"info": "username: doing something at 2013-04-01 12:17:51",
        	"subject":"0"
	}
    }
}

Code examples

0 comments

Be the first to comment on getAuditLog.

Add a Comment

  • captcha