Bumped bld to 1.9.0
This commit is contained in:
parent
78d0eef8b3
commit
c00b548b7d
15 changed files with 38 additions and 65 deletions
17
README.md
17
README.md
|
@ -1,6 +1,6 @@
|
|||
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://kotlinlang.org/)
|
||||
[](https://rife2.com/bld)
|
||||
[](https://rife2.com/bld)
|
||||
[](https://github.com/ethauvin/isgd-shorten/releases/latest)
|
||||
[](https://central.sonatype.com/artifact/net.thauvin.erik/isgd-shorten)
|
||||
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/isgd-shorten/)
|
||||
|
@ -28,7 +28,7 @@ Isgd.lookup("https://is.gd/Pt2sET") // returns https://www.example.com
|
|||
|
||||
- View [bld](https://github.com/ethauvin/isgd-shorten/blob/master/examples/bld) or [Gradle](https://github.com/ethauvin/isgd-shorten/blob/master/examples/gradle) Examples.
|
||||
|
||||
### JSON or XML
|
||||
## JSON or XML
|
||||
|
||||
The [is.gd API](https://is.gd/developers.php) can return data in plain text (default), JSON or XML.
|
||||
|
||||
|
@ -42,7 +42,7 @@ returns:
|
|||
{ "shorturl": "https://is.gd/Pt2sET" }
|
||||
```
|
||||
|
||||
### Parameters
|
||||
## Parameters
|
||||
|
||||
All of the [is.gd API](https://is.gd/developers.php) parameters are supported:
|
||||
|
||||
|
@ -61,7 +61,7 @@ returns:
|
|||
test({ "shorturl": "https://is.gd/foobar" });
|
||||
```
|
||||
|
||||
### bld
|
||||
## bld
|
||||
|
||||
To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/isgd-shorten/blob/master/examples/bld/src/bld/java/com/example/ExampleBuild.java) file:
|
||||
|
||||
|
@ -72,7 +72,7 @@ scope(compile)
|
|||
.include("net.thauvin.erik:isgd-shorten:1.0.`");
|
||||
```
|
||||
|
||||
### Gradle
|
||||
## Gradle
|
||||
|
||||
To use with [Gradle](https://gradle.org/), include the following dependency in your [build](https://github.com/ethauvin/isgd-shorten/blob/master/examples/gradle/build.gradle.kts) file:
|
||||
|
||||
|
@ -114,7 +114,7 @@ var config = new Config.Builder()
|
|||
Isgd.lookup(config);
|
||||
```
|
||||
|
||||
### Errors
|
||||
## Errors
|
||||
|
||||
An `IsgdException` is thrown when an API error occurs. The error message (text, XML or JSON) and HTTP status code can be retrieved as follows:
|
||||
|
||||
|
@ -132,7 +132,7 @@ Status Code: 400
|
|||
Error: Sorry, the URL you entered is on our internal blacklist. It may have been used abusively in the past, or it may link to another URL redirection service.
|
||||
```
|
||||
|
||||
### v.gd
|
||||
## v.gd
|
||||
|
||||
Additionally, link can be shortened using [v.gd](https://v.gd/) by setting the `isVgd` flag:
|
||||
|
||||
|
@ -156,5 +156,4 @@ cd isgd-shorten
|
|||
./bld compile
|
||||
```
|
||||
|
||||
The project has an [IntelliJ IDEA](https://www.jetbrains.com/idea/) project structure. You can just open it after all
|
||||
the dependencies were downloaded and peruse the code.
|
||||
The project has an [IntelliJ IDEA](https://www.jetbrains.com/idea/) project structure. You can just open it after all the dependencies were downloaded and peruse the code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue