1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00
Vitaly the Alpaca (bot) c3ff03b9b7 Main build (Jenkins)
2024-09-16 19:32:17 +03:00

993 B

sidebar_position
4

Get online users

Gets the status of a user or multiple users by ID

Function GetOnlineUsers(Val Token, Val UserIDs) Export

Parameter CLI option Type Description
Token --token String Viber Token
UserIDs --users String,Number,Array of String,Number Viber User(s) ID

Returns: Map Of KeyAndValue - serialized JSON response from Viber


    Token  = "523b58ba82afffaa-7ef3b426...";
    UserID = "tMNGhftyUPrB3r1lD+bT4g==";

    Result = OPI_Viber.GetOnlineUsers(Token, UserID);
    
  oint viber GetOnlineUsers --token %token% --users %users%

{
  "users": [
  {
  "last_online": 1704796869778,
  "online_status_message": "offline",
  "online_status": 1,
  "id": "d3jxe111111111YGgZg=="
  }
  ],
  "status_message": "ok",
  "status": 0
  }