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
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
$about
public
mixed
$about
$availableScopes
public
mixed
$availableScopes
$batchPath
public
mixed
$batchPath
$changes
public
mixed
$changes
$channels
public
mixed
$channels
$comments
public
mixed
$comments
$drives
public
mixed
$drives
$files
public
mixed
$files
$permissions
public
mixed
$permissions
$replies
public
mixed
$replies
$resource
public
mixed
$resource
$revisions
public
mixed
$revisions
$rootUrl
public
mixed
$rootUrl
$servicePath
public
mixed
$servicePath
$teamdrives
public
mixed
$teamdrives
$version
public
mixed
$version
$client
private
mixed
$client
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
BatchgetClient()
Return the associated Google\Client class.
public
getClient() : Client