1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-03 13:22:19 +02:00

41 lines
708 B
Markdown
Raw Normal View History

---
sidebar_position: 5
---
# Shorten link
Creates a shortened URL from a regular one
2024-07-10 13:58:29 +03:00
`Function ShortenLink(Val URL, Val Parameters = "") Export`
| Parameter | CLI option | Type | Destination |
|-|-|-|-|
| URL | --url | String | URL for shortening |
| Parameters | --auth | Structure Of String | Authorization JSON or path to .json |
Returns: String - Shortened URL
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
Response = OPI_VK.ShortenLink("https://github.com/Bayselonarrend/OpenIntegrations", Parameters);
```
```sh title="CLI command example"
oint vk ShortenLink --url %url% --auth %auth%
```
```json title="Result"
2024-07-10 14:11:17 +03:00
https://vk.cc/ctL1sM
```