Get user data
Gets user information by ID
Function GetUserData(Val Token, Val UserID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
UserID | --user | String, Number | ✔ | Viber User ID |
Returns: Map Of KeyAndValue - serialized JSON response from Viber
1C:Enterprise/OneScript code example
Token = "523b58ba82afffaa-7ef3b426...";
UserID = "tMNGhftyUPrB3r1lD+bT4g==";
Result = OPI_Viber.GetUserData(Token, UserID);
- Bash
- CMD/Bat
oint viber GetUserData \
--token "***" \
--user "tMNGhftyUPrB3r1lD+bT4g=="
oint viber GetUserData ^
--token "***" ^
--user "tMNGhftyUPrB3r1lD+bT4g=="
Result
{
"status": 6,
"status_message": "notSubscribed",
"chat_hostname": "SN-CHAT-04_"
}