2.2 KiB
docs / net.thauvin.erik.bitly / Bitly / <init>
<init>
Bitly(accessToken:
String
)
Creates a new instance using an API Access Token.
Parameters
accessToken
- The API access token.Bitly(properties:
Properties
, key:
String
= Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a [Properties](-init-.md#net.thauvin.erik.bitly.Bitly$(java.util.Properties, kotlin.String)/properties) and [Property Key](-init-.md#net.thauvin.erik.bitly.Bitly$(java.util.Properties, kotlin.String)/key).
Parameters
properties
- The properties.
key
- The property key containing the API Access Token.Bitly(propertiesFilePath:
Path
, key:
String
= Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a [Properties File Path](-init-.md#net.thauvin.erik.bitly.Bitly$(java.nio.file.Path, kotlin.String)/propertiesFilePath) and [Property Key](-init-.md#net.thauvin.erik.bitly.Bitly$(java.nio.file.Path, kotlin.String)/key).
Parameters
propertiesFilePath
- The properties file path.
key
- The property key containing the API Access Token.Bitly(propertiesFile:
File
, key:
String
= Constants.ENV_ACCESS_TOKEN)
Creates a new instance using a [Properties File](-init-.md#net.thauvin.erik.bitly.Bitly$(java.io.File, kotlin.String)/propertiesFile) and [Property Key](-init-.md#net.thauvin.erik.bitly.Bitly$(java.io.File, kotlin.String)/key).
Parameters
propertiesFile
- The properties file.
key
- The property key containing the API Access Token.Bitly()
Creates new instance.
Constructor Creates new instance.