bitly-shorten/docs/net.thauvin.erik.bitly/-bitlinks/shorten.md
2020-03-03 00:32:15 -08:00

1.2 KiB

docs / net.thauvin.erik.bitly / Bitlinks / shorten

shorten

@JvmOverloads fun shorten(long_url: String, group_guid: String= Constants.EMPTY, domain:String= Constants.EMPTY, toJson:Boolean= false):String (source)

Shortens a long URL.

See the Bit.ly API for more information.

Parameters

long_url - The long URL.

toJson - Returns the full JSON response if true

Return The short URL or JSON response, or on error, the [long_url](shorten.md#net.thauvin.erik.bitly.Bitlinks$shorten(kotlin.String, kotlin.String, kotlin.String, kotlin.Boolean)/long_url) or an empty JSON object.