1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-25 21:39:21 +02:00
Vitaly the Alpaca (bot) cba967e2a0 Main build (Jenkins)
2024-12-12 22:37:54 +03:00

108 lines
2.2 KiB
Plaintext

---
sidebar_position: 3
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get page
Gets information about the page by ID
`Function GetPage(Val Token, Val Page) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Page | --page | String | ✔ | Page ID |
Returns: Map Of KeyAndValue - serialized JSON response from Notion
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Page = "15982aa7-fc4e-8127-b912-f6096392796b";
Result = OPI_Notion.GetPage(Token, Page);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint notion GetPage \
--token "***" \
--page "15782aa7-fc4e-8117-8069-ccd147e457c4"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint notion GetPage ^
--token "***" ^
--page "15782aa7-fc4e-8117-8069-ccd147e457c4"
```
</TabItem>
</Tabs>
```json title="Result"
{
"object": "page",
"id": "11a82aa7-fc4e-8198-ad23-eeb2e6ea678f",
"created_time": "2024-10-09T06:14:00Z",
"last_edited_time": "2024-10-09T06:14:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"cover": null,
"icon": null,
"parent": {
"type": "page_id",
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
},
"archived": false,
"in_trash": false,
"properties": {
"title": {
"id": "title",
"type": "title",
"title": [
{
"type": "text",
"text": {
"content": "title",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "title",
"href": null
}
]
}
},
"url": "https://www.notion.so/title-11a82aa7fc4e8198ad23eeb2e6ea678f",
"public_url": null,
"request_id": "73d93b68-a4cf-48cb-ba49-0f24a81661ce"
}
```