1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-15 00:15:19 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Settings-and-administartion/Get-app-auth-link.mdx

59 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 1
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get app authentication link
Forms a link for authorization via the browser
`Function GetAppAuthLink(Val Domain, Val ClientID) Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Domain | --domain | String | ✔ | Current Bitrix URL (like 'portal.bitrix24.com') |
| ClientID | --clientid | String | ✔ | Client ID from app settings |
2024-10-15 10:16:04 +03:00
Returns: String - URL for browser transition
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-10-15 10:16:04 +03:00
Domain = "b24-ar17wx.bitrix24.by";
ClientID = "local.6667fc928a50a9.70414732";
Result = OPI_Bitrix24.GetAppAuthLink(Domain, ClientID);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetAppAuthLink \
2024-10-22 08:59:24 +03:00
--domain "b24-ar17wx.bitrix24.by" \
--clientid "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetAppAuthLink ^
2024-10-22 08:59:24 +03:00
--domain "b24-ar17wx.bitrix24.by" ^
--clientid "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
"https://b24-ar17wx.bitrix24.by/oauth/authorize/?client_id=local.6667fc928a50a9.70414732"
```