1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-25 12:24:39 +02:00

43 lines
757 B
Markdown
Raw Normal View History

---
sidebar_position: 2
---
# Get database
Get database information
2024-07-10 13:58:29 +03:00
`Function GetDatabase(Val Token, Val Base) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| Base | --base | String | Database ID |
Returns: Map Of KeyAndValue - Serialized JSON response from Notion
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-01 21:08:09 +03:00
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Base = "11282aa7-fc4e-810b-ab77-cef5a2a3443e";
Result = OPI_Notion.GetDatabase(Token, Base);
```
```sh title="CLI command example"
oint notion GetDatabase --token "secret_9RsfMrRMqZwqp0Zl0B..." --base "048ba0ce4f474e33900540d24..."
```
```json title="Result"
2024-10-02 09:14:30 +03:00
```