* Provides a historical view of activity in Google Drive.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class DriveActivity extends \Google\Service { /** View and add to the activity record of files in your Google Drive. */ const DRIVE_ACTIVITY = "https://www.googleapis.com/auth/drive.activity"; /** View the activity record of files in your Google Drive. */ const DRIVE_ACTIVITY_READONLY = "https://www.googleapis.com/auth/drive.activity.readonly"; public $activity; /** * Constructs the internal representation of the DriveActivity service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://driveactivity.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'driveactivity'; $this->activity = new DriveActivity\Resource\Activity( $this, $this->serviceName, 'activity', [ 'methods' => [ 'query' => [ 'path' => 'v2/activity:query', 'httpMethod' => 'POST', 'parameters' => [], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DriveActivity::class, 'Google_Service_DriveActivity');