Removed toJson() in CallResponse.

This commit is contained in:
Erik C. Thauvin 2020-03-17 17:01:09 -07:00
parent 353927580d
commit 8060f856ee
9 changed files with 28 additions and 26 deletions

View file

@ -64,7 +64,10 @@ bitly.bitlinks().shorten("https://www.erik.thauvin.net/blog", toJson = true)
Non-implemented methods can also be called directly:
```kotlin
bitly.call("/user".toEndPoint(), method = Methods.GET).toJson()
val response = bitly.call("/user".toEndPoint(), method = Methods.GET)
if (response.isSuccessful) {
println(response.body)
}
```
```json
{
@ -87,5 +90,5 @@ bitly.call("/user".toEndPoint(), method = Methods.GET).toJson()
```
- View [Example](https://github.com/ethauvin/bitly-shorten/blob/master/examples/src/main/kotlin/com/example/BitlyRetrieve.kt)
### More
### More...
If all else fails, there's always more [Documentation](https://ethauvin.github.io/bitly-shorten/).