Skip to main content

Get spreadsheet

Gets information about the spreadsheet by ID

Function GetSpreadsheet(Val Token, Val Identifier) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Identifier--spreadsheetStringSpreadsheet identifier

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token      = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
Identifier = "1fktk0k_rOszr4c3t89Z1KXXSsRWPU0fFPgLImiN-MzI";

Result = OPI_GoogleSheets.GetSpreadsheet(Token, Identifier);
    oint gsheets GetSpreadsheet \
--token "***" \
--spreadsheet "1lNdwweEhK1C1fXq80MLl6-CWAj9y89EJYiUBziOrvhM"