Documentation

Google_Service_Drive extends Google_Service
in package

Service definition for Drive (v3).

Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.

For more information about this service, see the API Documentation

Tags
author

Google, Inc.

Table of Contents

DRIVE  = "https://www.googleapis.com/auth/drive"
See, edit, create, and delete all of your Google Drive files.
DRIVE_APPDATA  = "https://www.googleapis.com/auth/drive.appdata"
View and manage its own configuration data in your Google Drive.
DRIVE_FILE  = "https://www.googleapis.com/auth/drive.file"
View and manage Google Drive files and folders that you have opened or created with this app.
DRIVE_METADATA  = "https://www.googleapis.com/auth/drive.metadata"
View and manage metadata of files in your Google Drive.
DRIVE_METADATA_READONLY  = "https://www.googleapis.com/auth/drive.metadata.readonly"
View metadata for files in your Google Drive.
DRIVE_PHOTOS_READONLY  = "https://www.googleapis.com/auth/drive.photos.readonly"
View the photos, videos and albums in your Google Photos.
DRIVE_READONLY  = "https://www.googleapis.com/auth/drive.readonly"
See and download all your Google Drive files.
DRIVE_SCRIPTS  = "https://www.googleapis.com/auth/drive.scripts"
Modify your Google Apps Script scripts' behavior.
$about  : mixed
$availableScopes  : mixed
$batchPath  : mixed
$changes  : mixed
$channels  : mixed
$comments  : mixed
$drives  : mixed
$files  : mixed
$permissions  : mixed
$replies  : mixed
$resource  : mixed
$revisions  : mixed
$rootUrl  : mixed
$servicePath  : mixed
$teamdrives  : mixed
$version  : mixed
$client  : mixed
__construct()  : mixed
Constructs the internal representation of the Drive service.
createBatch()  : Google_Http_Batch
Create a new HTTP Batch handler for this service
getClient()  : Google_Client
Return the associated Google_Client class.

Constants

DRIVE

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

public mixed DRIVE = "https://www.googleapis.com/auth/drive"

DRIVE_APPDATA

View and manage its own configuration data in your Google Drive.

public mixed DRIVE_APPDATA = "https://www.googleapis.com/auth/drive.appdata"

DRIVE_FILE

View and manage Google Drive files and folders that you have opened or created with this app.

public mixed DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"

DRIVE_METADATA

View and manage metadata of files in your Google Drive.

public mixed DRIVE_METADATA = "https://www.googleapis.com/auth/drive.metadata"

DRIVE_METADATA_READONLY

View metadata for files in your Google Drive.

public mixed DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"

DRIVE_PHOTOS_READONLY

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

public mixed DRIVE_PHOTOS_READONLY = "https://www.googleapis.com/auth/drive.photos.readonly"

DRIVE_READONLY

See and download all your Google Drive files.

public mixed DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"

DRIVE_SCRIPTS

Modify your Google Apps Script scripts' behavior.

public mixed DRIVE_SCRIPTS = "https://www.googleapis.com/auth/drive.scripts"

Properties

$availableScopes

public mixed $availableScopes

$changes

public mixed $changes

$channels

public mixed $channels

$comments

public mixed $comments

$drives

public mixed $drives

$permissions

public mixed $permissions

$replies

public mixed $replies

$revisions

public mixed $revisions

$servicePath

public mixed $servicePath

$teamdrives

public mixed $teamdrives

Methods

__construct()

Constructs the internal representation of the Drive service.

public __construct(Google_Client $client[, string $rootUrl = null ]) : mixed
Parameters
$client : Google_Client

The client used to deliver requests.

$rootUrl : string = null

The root URL used for requests to the service.

Return values
mixed

Search results