1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-18 05:18:06 +02:00

40 lines
729 B
Markdown
Raw Normal View History

---
sidebar_position: 1
---
# Get authorization link
Generates an authorization link for browser transition
2024-07-10 13:58:29 +03:00
`Function GetAuthorizationLink(Val AppKey) Export`
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| AppKey | --appkey | String | Application key |
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-07-10 14:24:11 +03:00
AppKey = "oynqxds...";
Result = OPI_Dropbox.GetAuthorizationLink(AppKey);
```
```sh title="CLI command example"
oint dropbox GetAuthorizationLink --appkey "oynqxds..."
```
```json title="Result"
2024-07-10 14:11:17 +03:00
"https://www.dropbox.com/oauth2/authorize?client_id=oynqxdsqft8oyky&response_type=code&token_access_type=offline"
```