1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-23 12:18:48 +02:00

47 lines
806 B
Markdown
Raw Normal View History

---
sidebar_position: 3
---
# Get user data
Gets user information by ID
2024-07-10 13:58:29 +03:00
`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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-09-24 11:38:18 +03:00
Token = "523b58ba82afffaa-7ef3b426...";
UserID = "tMNGhftyUPrB3r1lD+bT4g==";
2024-09-16 19:32:17 +03:00
Result = OPI_Viber.GetUserData(Token, UserID);
```
```sh title="CLI command example"
oint viber GetUserData --token %token% --user %user%
```
```json title="Result"
2024-09-29 21:40:58 +03:00
{
"status": 6,
"status_message": "notSubscribed",
"chat_hostname": "SN-CHAT-03_"
}
```