1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-05 15:15:50 +02:00

44 lines
949 B
Markdown
Raw Normal View History

---
sidebar_position: 1
---
# Get app authentication link
Forms a link for authorization via the browser
2024-07-10 13:58:29 +03:00
`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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-08-13 16:47:32 +03:00
Domain = "b24-ar17wx.bitrix24.by";
ClientID = "local.6667fc928a50a9.70414732";
Result = OPI_Bitrix24.GetAppAuthLink(Domain, ClientID);
```
```sh title="CLI command example"
oint bitrix24 GetAppAuthLink --domain "b24-ar17wx.bitrix24.by" --clientid "local.6667fc928a50a9.70414732"
```
```json title="Result"
2024-08-13 16:49:40 +03:00
"https://b24-ar17wx.bitrix24.by/oauth/authorize/?client_id=local.6667fc928a50a9.70414732"
```