You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-07 23:03:08 +02:00
59 lines
1.6 KiB
Plaintext
Vendored
59 lines
1.6 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 2
|
|
description: Get spreadsheet and other functions to work with Google Sheets in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Google Sheets]
|
|
---
|
|
|
|
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 | ✔ | Token |
|
|
| Identifier | --spreadsheet | String | ✔ | Spreadsheet identifier |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "ya29.a0AW4XtxhtghlL7aK7VhJX0jOgNWau4CUoOEDkQBr4uJEjPidCjKm-4r4l7AoJnODBt7yblowJtvv_3vETd6CulW4V5zxxPx8TTvQAMESj7...";
|
|
Identifier = "15pyer8RapTluc4feiD8_y1P42RVoDG5xBDly6IPC-OE";
|
|
|
|
Result = OPI_GoogleSheets.GetSpreadsheet(Token, Identifier);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gsheets GetSpreadsheet \
|
|
--token "***" \
|
|
--spreadsheet "1oGXEhvP6doUZw06a8nilumExYGjJ9hti1OlRerUngCg"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gsheets GetSpreadsheet ^
|
|
--token "***" ^
|
|
--spreadsheet "1oGXEhvP6doUZw06a8nilumExYGjJ9hti1OlRerUngCg"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
|