Get user data
Gets user data by ID
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
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": "a6fc9071-fac0-4069-84ba-e724b783d9ce"
}