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.a0AW4XtxgOTUonqiJAYqYtxcBh8MI1VxhOH0B9hCii3RQaZlp1PVWulwBqV-y7CkKAad7Ofs4NlHXhJ3-Qe1lj4xEd-ubK_QpjEkbdCVoUW...";
Identifier = "1mzZ4_JqvwJg8VmxpqhH2WZEZRxqn7cJEV4ytH9tTYqA";

Result = OPI_GoogleSheets.GetSpreadsheet(Token, Identifier);
    oint gsheets GetSpreadsheet \
--token "***" \
--spreadsheet "10yVQ5s01O1MOj_uELg_EqlcA_gzcCsIgYaVSuUNh0Qo"