class Drive extends Service (View source)

Service definition for Drive (v3).

The Google Drive API allows clients to access resources from Google Drive.

For more information about this service, see the API Documentation

Constants

DRIVE

See, edit, create, and delete all of your Google Drive files.

DRIVE_APPDATA

See, create, and delete its own configuration data in your Google Drive.

DRIVE_APPS_READONLY

View your Google Drive apps.

DRIVE_FILE

See, edit, create, and delete only the specific Google Drive files you use with this app.

DRIVE_MEET_READONLY

See and download your Google Drive files that were created or edited by Google Meet.

.

DRIVE_METADATA

View and manage metadata of files in your Google Drive.

DRIVE_METADATA_READONLY

See information about your Google Drive files.

DRIVE_PHOTOS_READONLY

View the photos, videos and albums in your Google Photos.

DRIVE_READONLY

See and download all your Google Drive files.

DRIVE_SCRIPTS

Modify your Google Apps Script scripts' behavior.

Properties

$about
$apps
$changes
$channels
$comments
$drives
$files
$permissions
$replies
$revisions
$teamdrives
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Drive service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Drive service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.