async function listDriveActivity(auth) {
  const service = google.driveactivity({version: 'v2', auth});
  const params = {
    pageSize: 10,
  };
  const res = await service.activity.query({requestBody: params});
  const activities = res.data.activities;
  if (!activities || activities.length === 0) {
    console.log('No activity.');
    return;
  }
  console.log('Recent activity:');
  activities.forEach((activity) => {
    const time = getTimeInfo(activity);
    const action = getActionInfo(activity.primaryActionDetail);
    const actors = activity.actors.map(getActorInfo);
    const targets = activity.targets.map(getTargetInfo);
    console.log(
        `${time}: ${truncated(actors)}, ${action}, ` + `${truncated(targets)}`,
    );
  });
}
Lists the recent activity in your Google Drive.

@param {google.auth.OAuth2} auth An authorized OAuth2 client.