Get user data
Gets user data by ID
- Parameters
- Advanced call ?
Function GetUserData(Val Token, Val UserID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| UserID | --user | String | ✔ | Target user ID |
Returns
Map Of KeyAndValue - serialized JSON response from Notion
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete structure with fields code, body, and headers |
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
User = "ed71865a-9891-46bc-86cd-a92aa499cfdb";
Result = OPI_Notion.GetUserData(Token, User);
- Bash
- CMD/Bat
oint notion GetUserData \
--token "***" \
--user "ed71865a-9891-46bc-86cd-a92aa499cfdb"
oint notion GetUserData ^
--token "***" ^
--user "ed71865a-9891-46bc-86cd-a92aa499cfdb"
Result
{
"object": "user",
"id": "ed71865a-9891-46bc-86cd-a92aa499cfdb",
"name": "Techno Pizza",
"avatar_url": null,
"type": "person",
"person": {
"email": "iscript13@gmail.com"
},
"request_id": "d5b04324-48d2-44ec-90c1-4690fc3d47da"
}