class Sheets extends Service (View source)

Service definition for Sheets (v4).

Reads and writes Google Sheets.

For more information about this service, see the API Documentation

Constants

DRIVE

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

DRIVE_FILE

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

DRIVE_READONLY

See and download all your Google Drive files.

SPREADSHEETS

See, edit, create, and delete all your Google Sheets spreadsheets.

SPREADSHEETS_READONLY

See all your Google Sheets spreadsheets.

Properties

$spreadsheets
$spreadsheets_developerMetadata
$spreadsheets_sheets
$spreadsheets_values
$rootUrlTemplate

Methods

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

Constructs the internal representation of the Sheets service.

Details

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

Constructs the internal representation of the Sheets 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.