1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-03 13:22:19 +02:00

43 lines
937 B
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Get spreadsheet
Gets information about the spreadsheet by ID
2024-07-10 13:58:29 +03:00
`Function GetSpreadsheet(Val Token, Val Identifier) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Identifier | --spreadsheet | String | Spreadsheet identifier |
Returns: Map Of KeyAndValue - serialized JSON response from Google
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-13 01:45:32 +03:00
Token = "ya29.a0AcM612w6SWzMf3Ti1dSiFdgdLdXxLBjzKdXoLGuGDHoSXzb0uAKe5hJ-HPz1Njyp7HuHE6NnMnevQwbo0AR-yPAwfrA1OsMFZ_Fac2ASn...";
Identifier = "1byey4pYpbD_Bmh0c49QYSEfwkqTUwcTIqhMtrDyq7vQ";
2024-09-29 19:41:20 +03:00
Result = OPI_GoogleSheets.GetSpreadsheet(Token, Identifier);
```
```sh title="CLI command example"
oint gsheets GetSpreadsheet --token %token% --spreadsheet "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc"
```
```json title="Result"
2024-09-29 17:27:25 +03:00
```