1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-16 11:38:11 +02:00
OpenIntegrations/docs/en/md/Bitrix24/Chats-and-dialogs-managment/Get-user-status.md
2024-07-30 22:56:09 +03:00

1.1 KiB

sidebar_position
17

Get user status

Gets the status (online) of the current user

Function GetUserStatus(Val URL, Val Token = "") Export

Parameter CLI option Type Destination
URL --url String URL of webhook or a Bitrix24 domain, when token used
Token --token String Access token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


:::tip Method at API documentation: im.user.status.get :::

 URL = "https://b24-ar17wx.bitrix24.by/rest/1/4swokunb3tk7h7dt/";
 
 Result = OPI_Bitrix24.GetUserStatus(URL);
 
 
 
 URL = "b24-ar17wx.bitrix24.by";
 Token = "adf89366006e9f06006b12e400000001000...";
 
 Result = OPI_Bitrix24.GetUserStatus(URL, Token);
 
 oint bitrix24 GetUserStatus --url %url% --token %token%

{
 "error": "expired_token",
 "error_description": "The access token provided has expired."
}