Fixed JSON examples.
This commit is contained in:
parent
cc1f4ffc4e
commit
47bc73b743
1 changed files with 8 additions and 7 deletions
15
README.md
15
README.md
|
@ -1,7 +1,7 @@
|
|||
[](http://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://snyk.io/test/github/ethauvin/isgd-shorten?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_isgd-shorten) [](https://travis-ci.com/ethauvin/isgd-shorten) [](https://circleci.com/gh/ethauvin/isgd-shorten/tree/master)
|
||||
|
||||
# [is.gd](https://is.gd/developers.php) Shortener for Kotlin/Java.
|
||||
# [is.gd](https://is.gd/developers.php) Shortener for Kotlin/Java
|
||||
|
||||
A simple implementation of the [is.gd API](https://is.gd/developers.php).
|
||||
|
||||
|
@ -27,10 +27,11 @@ The [is.gd API](https://is.gd/developers.php) can return data in plain text (def
|
|||
```kotlin
|
||||
Isgd.shorten("https://www.example.com/", format = Format.JSON)
|
||||
```
|
||||
|
||||
returns:
|
||||
|
||||
```json
|
||||
{
|
||||
"shorturl": "https://is.gd/Pt2sET"
|
||||
}
|
||||
{ "shorturl": "https://is.gd/Pt2sET" }
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -40,10 +41,10 @@ All of the [is.gd API](https://is.gd/developers.php) parameters are supported:
|
|||
```kotlin
|
||||
Isgd.shorten(url = url, shorturl="foobar", callback = "test", logstats = true, format = Format.JSON)
|
||||
```
|
||||
returns:
|
||||
|
||||
```json
|
||||
{
|
||||
"shorturl": "https://is.gd/foobar"
|
||||
}
|
||||
test({ "shorturl": "https://is.gd/foobar" });
|
||||
```
|
||||
|
||||
### v.gd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue