1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/md/Notion/Users/Get-user-data.md
2024-06-06 15:33:52 +03:00

1.0 KiB

sidebar_position
2

Get user data

Gets user data by ID

Function GetUserData(Val Token, Val UserID) Export

Parameter CLI option Type Destination
Token --token String Token
UserID --user String Target user ID

Returns: Map Of KeyAndValue - Serialized JSON response from Notion

	
 
 Token = "secret_9RsfMrRMqZwqp0Zl0B...";
 UserID = "ed71865a989146bc86cdwdf24...";
 
 Response = OPI_Notion.GetUserData(Token, UserID);
 Response = OPI_Tools.JSONString(Response);
 
 
	
 
 oint notion GetUserData --token "secret_9RsfMrRMqZwqp0Zl0B..." --user "ed71865a989146bc86cdwdf24..."



{
 "request_id": "f33d34a8-f3cf-41b5-bdf5-4a07cf7d7118",
 "person": {
 "email": "ex@gmail.com"
 },
 "type": "person",
 "avatar_url": null,
 "name": "Bayselonarrend",
 "id": "ed71865a-9891-1111-86cd-1111111",
 "object": "user"
 }