Bitly

open class Bitly

Provides access to the Bitly API v4.

Constructors

Bitly
Link copied to clipboard
fun Bitly(accessToken: String)
Creates a new instance using an API Access Token.
Bitly
Link copied to clipboard
fun Bitly(properties: Properties, key: String = Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a Properties and Property Key.
Bitly
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.
Bitly
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.
Bitly
Link copied to clipboard
fun Bitly()
Creates new instance.

Functions

bitlinks
Link copied to clipboard
fun bitlinks(): Bitlinks
Returns a new Bitlinks instance.
call
Link copied to clipboard
fun call(endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods = Methods.POST): CallResponse
Executes an API call.

Properties

accessToken
Link copied to clipboard
var accessToken: String
The API access token.