class Activities extends Resource (View source)

The "activities" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Reports(...);
 $activities = $adminService->activities;

Methods

listActivities(string $userKey, string $applicationName, array $optParams = [])

Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.

watch(string $userKey, string $applicationName, Channel $postBody, array $optParams = [])

Start receiving notifications for account activities. For more information, see Receiving Push Notifications. (activities.watch)

Details

Activities listActivities(string $userKey, string $applicationName, array $optParams = [])

Retrieves a list of activities for a specific customer's account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report's parameters, see the activity parameters reference guides.

(activities.listActivities)

Parameters

string $userKey

Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call users.list in Directory API with showDeleted=true, then use the returned ID as the userKey.

string $applicationName

Application name for which the events are to be retrieved.

array $optParams

Optional parameters.

Return Value

Activities

Exceptions

Exception

Channel watch(string $userKey, string $applicationName, Channel $postBody, array $optParams = [])

Start receiving notifications for account activities. For more information, see Receiving Push Notifications. (activities.watch)

Parameters

string $userKey

Represents the profile ID or the user email for which the data should be filtered. Can be all for all information, or userKey for a user's unique Google Workspace profile ID or their primary email address. Must not be a deleted user. For a deleted user, call users.list in Directory API with showDeleted=true, then use the returned ID as the userKey.

string $applicationName

Application name for which the events are to be retrieved.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception