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

Bitlinks

open class Bitlinks (source)

Bitlinks methods implementation.

See the Bitly API for more information.

Constructors

<init>

Bitlinks methods implementation.

Bitlinks(accessToken: String)

Functions

clicks

Returns the click counts for a specified Bitlink.

fun clicks(bitlink: String, unit: Units = Units.DAY, units: Int = -1, size: Int = 50, unit_reference: String = Constants.EMPTY, toJson: Boolean = false): String

create

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

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

expand

Expands a Bitlink.

fun expand(bitlink_id: String, toJson: Boolean = false): String

shorten

Shortens a long URL.

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