1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-18 23:48:56 +02:00
OpenIntegrations/docs/en/md/Bitrix24/Settings-and-administartion/Get-app-auth-link.md
2024-08-13 15:52:26 +03:00

962 B

sidebar_position
1

Get app authentication link

Forms a link for authorization via the browser

Function GetAppAuthLink(Val Domain, Val ClientID) Export

Parameter CLI option Type Description
Domain --domain String Current Bitrix URL (like 'portal.bitrix24.com')
ClientID --clientid String Client ID from app settings

Returns: String - URL for browser transition


  Domain   = FunctionParameters["Bitrix24_Domain"];
  ClientID = FunctionParameters["Bitrix24_ClientID"];
  
  Result = OPI_Bitrix24.GetAppAuthLink(Domain, ClientID);
    
  oint bitrix24 GetAppAuthLink --domain "b24-ar17wx.bitrix24.by" --clientid "local.6667fc928a50a9.70414732"

"https://b24-ar17wx.bitrix24.by/oauth/authorize/?client_id=local.6667fc928a50a9.70414732"