shorten

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

Shortens a long URL.

See the Bit.ly API for more information.

Return

The short URL or JSON response, or on error, the long_url or an empty JSON object.

Parameters

long_url

The long URL.

toJson

Returns the full JSON response if true