1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-07-05 00:58:52 +02:00
Files
OpenIntegrations/docs/en/md/Notion/Users/User-list.mdx

88 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 1
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# User list
Returns a list of workspace users
`Function UserList(Val Token) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Notion
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Result = OPI_Notion.UserList(Token);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint notion UserList \
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint notion UserList ^
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"object": "list",
"results": [
{
"object": "user",
"id": "ed71865a-9891-46bc-86cd-a92aa499cfdb",
"name": "Techno Pizza",
"avatar_url": null,
"type": "person",
"person": {
"email": "iscript13@gmail.com"
}
},
{
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0",
"name": "1C Integration",
"avatar_url": null,
"type": "bot",
"bot": {
"owner": {
"type": "workspace",
"workspace": true
},
"workspace_name": "Bayselonarrends Notion"
}
}
],
"next_cursor": null,
"has_more": false,
"type": "user",
"user": {},
"request_id": "ad031a0a-82a1-4d62-b104-184ef7dbb29b"
}
```