resource_log_last_rows

Retrieve recent entries from the resource log v8.6 and above

Param1 $minref The minimum ref (id) of the log entry to retrieve
Param2 $days Number of recent days entries to return. Default = 7 (this is ignored if minref is supplied).
Param3 $maxrecords Maximum number of records to return. Default = all rows (0)

Return values

Log entries in JSON format, including date, ref, resource, type (refer to definitions.php) , resource_type_field, user ID, notes, diff and usageoption value