Bitly

open class Bitly

Provides access to the Bitly API v4.

Constructors

Link copied to clipboard
fun Bitly(accessToken: String)

Creates a new instance using an API Access Token.

Link copied to clipboard
fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)

Creates a new instance using a properties and property key.

Link copied to clipboard
fun Bitly(propertiesFilePath: Path, key: String = Constants.ENV_ACCESS_TOKEN)

Creates a new instance using a properties file path and property key.

Link copied to clipboard
fun Bitly(propertiesFile: File, key: String = Constants.ENV_ACCESS_TOKEN)

Creates a new instance using a properties file and property key.

Link copied to clipboard
fun Bitly()

Creates new instance.

Functions

Link copied to clipboard
fun bitlinks(): Bitlinks

Returns a new Bitlinks instance.

Link copied to clipboard
fun call(    endPoint: String,     params: Map<String, Any> = emptyMap(),     method: Methods = Methods.POST): CallResponse

Executes an API call.

Properties

Link copied to clipboard
var accessToken: String

The API access token.

Sources

Link copied to clipboard