mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-26 05:37:27 +02:00
806 B
806 B
sidebar_position |
---|
3 |
Get user data
Gets user information by ID
Function GetUserData(Val Token, Val UserID) Export
Parameter | CLI option | Type | Description |
---|---|---|---|
Token | --token | String | Token |
UserID | --user | String, Number | Viber User ID |
Returns: Map Of KeyAndValue - serialized JSON response from Viber
Token = "523b58ba82afffaa-7ef3b426...";
UserID = "tMNGhftyUPrB3r1lD+bT4g==";
Result = OPI_Viber.GetUserData(Token, UserID);
oint viber GetUserData --token %token% --user %user%
{
"status": 6,
"status_message": "notSubscribed",
"chat_hostname": "SN-CHAT-06_"
}