﻿---
sidebar_position: 2
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get spreadsheet
 Gets information about the spreadsheet by ID



`Function GetSpreadsheet(Val Token, Val Identifier) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --token | String | &#x2714; | Token |
  | Identifier | --spreadsheet | String | &#x2714; | Spreadsheet identifier |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Google

<br/>




```bsl title="1C:Enterprise/OneScript code example"
    Token      = "ya29.a0AeDClZCVfxXCE-JAcPJed8p82WT_K0Jtttw0mCwT02IVORX3qB2e7AM-8OQCJa8ImTUNCA5F--f_CULx1mArjs-Se30Fonbdtroe7NaOe...";
    Identifier = "1sop204zegJKdSBspxzJHBlGoaCa05__9cT7ivebrAwQ";

    Result = OPI_GoogleSheets.GetSpreadsheet(Token, Identifier);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint gsheets GetSpreadsheet \
             --token "***" \
             --spreadsheet "1d2cP7XLVNVYbsYC2bdv5ToURhCJJ6D5rZDZmn7spPdY"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint gsheets GetSpreadsheet ^
             --token "***" ^
             --spreadsheet "1d2cP7XLVNVYbsYC2bdv5ToURhCJJ6D5rZDZmn7spPdY"
        ```
    </TabItem>
</Tabs>



