Documentation

Drive extends 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

Constants

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"
See, create, and delete its own configuration data in your Google Drive.
DRIVE_FILE  = "https://www.googleapis.com/auth/drive.file"
See, edit, create, and delete only the specific Google Drive files you use 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"
See information about your Google Drive files.
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.

Properties

$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

Methods

__construct()  : mixed
Constructs the internal representation of the Drive service.
createBatch()  : Batch
Create a new HTTP Batch handler for this service
getClient()  : 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

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

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

DRIVE_FILE

See, edit, create, and delete only the specific Google Drive files you use 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

See information about your Google Drive files.

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([Client|array<string|int, mixed> $clientOrConfig = [] ][, string $rootUrl = null ]) : mixed
Parameters
$clientOrConfig : Client|array<string|int, mixed> = []

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

$rootUrl : string = null

The root URL used for requests to the service.

createBatch()

Create a new HTTP Batch handler for this service

public createBatch() : Batch
Return values
Batch

getClient()

Return the associated Google\Client class.

public getClient() : Client
Return values
Client

        
On this page

Search results