class SpreadsheetsSheets extends Resource (View source)

The "sheets" collection of methods.

Typical usage is:

 $sheetsService = new Google\Service\Sheets(...);
 $sheets = $sheetsService->spreadsheets_sheets;

Methods

copyTo(string $spreadsheetId, int $sheetId, CopySheetToAnotherSpreadsheetRequest $postBody, array $optParams = [])

Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet. (sheets.copyTo)

Details

SheetProperties copyTo(string $spreadsheetId, int $sheetId, CopySheetToAnotherSpreadsheetRequest $postBody, array $optParams = [])

Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet. (sheets.copyTo)

Parameters

string $spreadsheetId

The ID of the spreadsheet containing the sheet to copy.

int $sheetId

The ID of the sheet to copy.

CopySheetToAnotherSpreadsheetRequest $postBody
array $optParams

Optional parameters.

Return Value

SheetProperties

Exceptions

Exception