'List a group of events from Drive Audit activity events API

When i try to fetch the data from Drive Activity API i get all events such as view, edit,comment etc. While the events i want are the drive approval ones only.

This is the code, most is available at google developers.

  var applicationName = 'drive';
  var events = { 
    eventName: approval_completed,
    approval_completed_comment_added,
    approval_completed_decision_reset,
    approval_completed_due_time_changed,
    approval_completed_requested,
    approval_completed_reviewer_changed,
    approval_completed_reviewer_responded,
    maxResults:10
  
var response = AdminReports.Activities.list(userKey, applicationName, events);

var activities = response.items;
 if (activities.length > 0) {
    Logger.log('Drive Approvals:');
    for (i = 0; i < activities.length; i++) {
      var activity = activities[i];
      Logger.log(activity.id.time, ...)

So i pass the eventNames that i want and try to fetch the data, but i only get one of the eventNames in return. How can i fetch multiple eventNames? Ait'sif its possible. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source