Started the example.
This commit is contained in:
parent
306c112c8d
commit
c581ab667a
10 changed files with 364 additions and 0 deletions
10
examples/src/main/java/com/example/BitlySample.java
Normal file
10
examples/src/main/java/com/example/BitlySample.java
Normal file
|
@ -0,0 +1,10 @@
|
|||
package com.example;
|
||||
|
||||
import net.thauvin.erik.bitly.Bitly;
|
||||
|
||||
public class BitlySample {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new Bitly("YOUR_API_KEY").shorten("https://erik.thauvin.net/blog"));
|
||||
System.exit(0);
|
||||
}
|
||||
}
|
9
examples/src/main/kotlin/com/example/BitlyExample.kt
Normal file
9
examples/src/main/kotlin/com/example/BitlyExample.kt
Normal file
|
@ -0,0 +1,9 @@
|
|||
package com.example
|
||||
|
||||
import net.thauvin.erik.bitly.Bitly
|
||||
import kotlin.system.exitProcess
|
||||
|
||||
fun main() {
|
||||
println(Bitly("YOUR_API_KEY").shorten("https://erik.thauvin.net/blog"))
|
||||
exitProcess(0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue