diff --git a/README.md b/README.md index 95d243d..fd17301 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # [Bitly](https://dev.bitly.com/v4/) Shortener for Kotlin/Java/Android -A simple implementation of the link shortening ([bitlinks](https://dev.bitly.com/v4/#tag/Bitlinks)) abilities of the [Bitly v4 API](https://dev.bitly.com/v4). +A simple implementation of the link shortening (Bitlinks) abilities of the [Bitly v4 API](https://dev.bitly.com/api-reference). ## Examples (TL;DR) diff --git a/config/dokka/packages.md b/config/dokka/packages.md index 2cd2918..12c5f52 100644 --- a/config/dokka/packages.md +++ b/config/dokka/packages.md @@ -2,8 +2,8 @@ [Bitly Shortener for Kotlin/Java](https://github.com/ethauvin/bitly-shorten) -A simple implementation of the link shortening ([bitlinks](https://dev.bitly.com/v4/#tag/Bitlinks)) abilities of the [Bitly API v4](https://dev.bitly.com/v4). +A simple implementation of the link shortening (Bitlinks) abilities of the [Bitly API v4](https://dev.bitly.com/api-reference). # Package net.thauvin.erik.bitly -Provides the classes necessary to access the [Bitly API v4](https://dev.bitly.com/v4). +Provides the classes necessary to access the [Bitly API v4](https://dev.bitly.com/api-reference). diff --git a/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt b/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt index 7a6298c..3c32926 100644 --- a/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt +++ b/src/main/kotlin/net/thauvin/erik/bitly/Bitlinks.kt @@ -40,9 +40,9 @@ import org.json.JSONObject import java.util.logging.Level /** - * Provides functions to create and manage [Bitlinks](https://dev.bitly.com/v4/#tag/Bitlinks). + * Provides functions to create and manage Bitlinks. * - * See the [Bitly API](https://dev.bitly.com/v4/#tag/Bitlinks) for more information. + * See the [Bitly API](https://dev.bitly.com/api-reference) for more information. */ open class Bitlinks(private val accessToken: String) { /** @@ -54,7 +54,7 @@ open class Bitlinks(private val accessToken: String) { /** * Returns the click counts for a specified Bitlink. * - * See the [Bitly API](https://dev.bitly.com/v4/#operation/getClicksSummaryForBitlink) for more information. + * See the [Bitly API](https://dev.bitly.com/api-reference#getClicksSummaryForBitlink) for more information. * * @param bitlink A Bitlink made of the domain and hash. * @param unit A [unit of time][Units]. @@ -96,7 +96,7 @@ open class Bitlinks(private val accessToken: String) { /** * Converts a long url to a Bitlink and sets additional parameters. * - * See the [Bit.ly API](https://dev.bitly.com/v4/#operation/createFullBitlink) for more information. + * See the [Bit.ly API](https://dev.bitly.com/api-reference#createFullBitlink) for more information. * * @oaran long_url The long URL. * @param toJson Returns the full JSON response if `true` @@ -135,7 +135,7 @@ open class Bitlinks(private val accessToken: String) { /** * Expands a Bitlink. * - * See the [Bit.ly API](https://dev.bitly.com/v4/#operation/expandBitlink) for more information. + * See the [Bit.ly API](https://dev.bitly.com/api-reference#expandBitlink) for more information. * * @param bitlink_id The bitlink ID. * @param toJson Returns the full JSON response if `true` @@ -184,7 +184,7 @@ open class Bitlinks(private val accessToken: String) { /** * Shortens a long URL. * - * See the [Bit.ly API](https://dev.bitly.com/v4/#operation/createBitlink) for more information. + * See the [Bit.ly API](https://dev.bitly.com/api-reference#createBitlink) for more information. * * @param long_url The long URL. * @param toJson Returns the full JSON response if `true` @@ -220,9 +220,9 @@ open class Bitlinks(private val accessToken: String) { } /** - * Updates fields in the Bitlink. + * Updates fields in the specified Bitlink. * - * See the [Bit.ly API](https://dev.bitly.com/v4/#operation/updateBitlink) for more information. + * See the [Bit.ly API](https://dev.bitly.com/api-reference#updateBitlink) for more information. * * @oaran bitlink A Bitlink made of the domain and hash. * @param toJson Returns the full JSON response if `true` diff --git a/src/main/kotlin/net/thauvin/erik/bitly/Bitly.kt b/src/main/kotlin/net/thauvin/erik/bitly/Bitly.kt index 26b3165..bde6fdc 100644 --- a/src/main/kotlin/net/thauvin/erik/bitly/Bitly.kt +++ b/src/main/kotlin/net/thauvin/erik/bitly/Bitly.kt @@ -38,7 +38,7 @@ import java.nio.file.Path import java.util.Properties /** - * Provides access to the [Bitly API v4](https://dev.bitly.com/v4). + * Provides access to the [Bitly API v4](https://dev.bitly.com/api-reference). * * @constructor Creates new instance. */ @@ -46,7 +46,7 @@ open class Bitly() { /** The API access token. * * See [Generic Access Token](https://bitly.is/accesstoken) or - * [Authentication](https://dev.bitly.com/v4/#section/Authentication). + * [Authentication](https://dev.bitly.com/docs/getting-started/authentication). **/ var accessToken: String = System.getenv(Constants.ENV_ACCESS_TOKEN) ?: (System.getProperty(Constants.ENV_ACCESS_TOKEN) ?: Constants.EMPTY)