bitly-shorten / net.thauvin.erik.bitly / Bitlinks / create

create

@JvmOverloads fun create(domain: String = Constants.EMPTY, title: String = Constants.EMPTY, group_guid: String = Constants.EMPTY, tags: Array<String> = emptyArray(), deeplinks: Array<Map<String, String>> = emptyArray(), long_url: String, toJson: Boolean = false): String (source)

Converts a long url to a Bitlink and sets additional parameters.

See the Bit.ly API for more information.

Parameters

toJson - Returns the full JSON response if true

Oaran
long_url The long URL.

Return
The shorten URL or JSON response, or on error, an empty string/JSON object.