Skip to main content

Shorten link

Creates a shortened URL from a regular one

Function ShortenLink(Val URL, Val Parameters = "") Export

ParameterCLI optionTypeDescription
URL--urlStringURL for shortening
Parameters--authStructure Of StringAuthorization JSON or path to .json

Returns: String - Shortened URL


Code example
  
Response = OPI_VK.ShortenLink("https://github.com/Bayselonarrend/OpenIntegrations", Parameters);
CLI command example
    
oint vk ShortenLink --url %url% --auth %auth%

Result
https://vk.cc/ctL1sM