Added Gradle section.

This commit is contained in:
Erik C. Thauvin 2020-06-09 14:17:56 -07:00
parent bf164e2b7d
commit fb76c1fc9e

View file

@ -45,6 +45,20 @@ val bitly = Bitly(File("my.properties"))
BITLY_ACCESS_TOKEN=abc123def456ghi789jkl0
```
### Gradle
To use with [Gradle](https://gradle.org/), include the following dependency in your [build](https://github.com/ethauvin/bitly-shorten/blob/master/examples/build.gradle.kts) file:
```gradle
repositories {
jcenter()
}
dependencies {
implementation("net.thauvin.erik:bitly-shorten:0.9.2")
}
```
### JSON
All implemented methods can return the full API JSON responses: