Upgraded to Kotlin 1.7.20
This commit is contained in:
parent
035aa73fab
commit
28d86b8b14
14 changed files with 54 additions and 54 deletions
14
README.md
14
README.md
|
@ -1,6 +1,6 @@
|
|||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/isgd-shorten/releases/latest) [](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/isgd-shorten)
|
||||
[](https://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/isgd-shorten/releases/latest) [](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/isgd-shorten)
|
||||
|
||||
[](https://snyk.io/test/github/ethauvin/isgd-shorten?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_isgd-shorten) [](https://github.com/ethauvin/isgd-shorten/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/isgd-shorten/tree/master)
|
||||
[](https://sonarcloud.io/dashboard?id=ethauvin_isgd-shorten) [](https://github.com/ethauvin/isgd-shorten/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/isgd-shorten/tree/master)
|
||||
|
||||
# [is.gd](https://is.gd/developers.php) Shortener for Kotlin/Java/Android
|
||||
|
||||
|
@ -44,7 +44,7 @@ Isgd.shorten(url = url, shorturl="foobar", callback = "test", logstats = true, f
|
|||
```
|
||||
returns:
|
||||
|
||||
```json
|
||||
```js
|
||||
test({ "shorturl": "https://is.gd/foobar" });
|
||||
```
|
||||
### Gradle
|
||||
|
@ -52,11 +52,15 @@ test({ "shorturl": "https://is.gd/foobar" });
|
|||
To use with [Gradle](https://gradle.org/), include the following dependency in your [build](https://github.com/ethauvin/isgd-shorten/blob/master/examples/build.gradle.kts) file:
|
||||
|
||||
```gradle
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("net.thauvin.erik:isgd-shorten:0.9.2")
|
||||
}
|
||||
```
|
||||
Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](https://search.maven.org/artifact/net.thauvin.erik/isgd-shorten/0.9.2/jar).
|
||||
Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/isgd-shorten).
|
||||
|
||||
### Errors
|
||||
|
||||
|
@ -64,7 +68,7 @@ An `IsgdException` is thrown when an API error occurs. The error message (text,
|
|||
|
||||
```kotlin
|
||||
try {
|
||||
Isgd.shorten("http://is.gd/Pt2sET") // already shorten
|
||||
Isgd.shorten("https://is.gd/Pt2sET") // already shorten
|
||||
} catch (e: IsgdException)
|
||||
println("Status Code: ${e.statusCode}")
|
||||
println("${e.message})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue