Shorten link
Creates a shortened URL from a regular one
Function ShortenLink(Val URL, Val Parameters = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | URL for shortening |
Parameters | --auth | Structure Of String | ✖ | Authorization JSON or path to .json |
Returns: String - Shortened URL
1C:Enterprise/OneScript code example
Parameters = GetVKParameters();
Result = OPI_VK.ShortenLink("https://github.com/Bayselonarrend/OpenIntegrations", Parameters);
- Bash
- CMD/Bat
oint vk ShortenLink \
--url ""https://github.com/Bayselonarrend/OpenIntegrations"" \
--auth ""/tmp/vist45ln.ef2.json""
oint vk ShortenLink ^
--url ""https://github.com/Bayselonarrend/OpenIntegrations"" ^
--auth ""/tmp/vist45ln.ef2.json""
Result
"https://vk.cc/ctL1sM"