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/Get-user-data.mdx

51 lines
882 B
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 2
---
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
# Get user data
Gets user data by ID
`Function GetUserData(Val Token, Val UserID) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| UserID | --user | String | Target user ID |
Returns: Map Of KeyAndValue - serialized JSON response from Notion
<br/>
```bsl title="Code example"
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
User = "ed71865a-9891-46bc-86cd-a92aa499cfdb";
Result = OPI_Notion.GetUserData(Token, User);
```
```json title="Result"
{
"object": "user",
"id": "ed71865a-9891-46bc-86cd-a92aa499cfdb",
"name": "Techno Pizza",
"avatar_url": null,
"type": "person",
"person": {
"email": "iscript13@gmail.com"
},
"request_id": "a6fc9071-fac0-4069-84ba-e724b783d9ce"
}
```