6 KiB
6 KiB
docs / net.thauvin.erik.bitly / Bitlinks
Bitlinks
open class Bitlinks
(source)
Provides functions to create and manage Bitlinks.
See the Bitly API for more information.
Constructors
Name | Summary |
---|---|
<init> | Provides functions to create and manage Bitlinks.Bitlinks(accessToken: String ) |
Properties
Name | Summary |
---|---|
lastCallResponse | The last API call response.var lastCallResponse: CallResponse |
Functions
Name | Summary |
---|---|
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 |
update | Updates fields in the Bitlink.fun update(bitlink: String , references: Map < String , String > = emptyMap(), archived: Boolean = false, tags: Array < String > = emptyArray(), created_at: String = Constants.EMPTY, title: String = Constants.EMPTY, deeplinks: Array < Map < String , String >> = emptyArray(), created_by: String = Constants.EMPTY, long_url: String = Constants.EMPTY, client_id: String = Constants.EMPTY, custom_bitlinks: Array < String > = emptyArray(), link: String = Constants.EMPTY, id: String = Constants.EMPTY, toJson: Boolean = false): String |