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.a0ARW5m7702-Ib_bOq69krqD5iUx89SC2lxGPxRJoBjqvSBqE7uKghOyAjwrL7ebNf6xqPzwD4wQfZlFvBrb7QsWlw5PGW_SvkFr57Y8Js...";
Identifier = "1DoHoA-PGU3xsThA9Uh_rb_oHNpCXhKH0DkirmHTIo9I";

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