From a91e162aba2fe8bf45db11bfd67dc670123884c9 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 20 Jun 2018 00:07:55 -0700 Subject: [PATCH] Added samples. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a75c60..01103d4 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ poster.addPin("http://www.example.com/foo", "This is a test") poster.deletePin("http:///www.example.com/bar") ``` -[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/src/main/kotlin/net/thauvin/erik/pinboard/PinboardPoster.kt#L232) +[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/koltin/src/main/kotlin/net/erik/pinboard/samples/KotlinExample.kt) ### Java ```java @@ -27,7 +27,7 @@ final PinboardPoster poster = new PinBboardPoster("user:TOKEN"); poster.addPin("http://www.example.com/foo", "This is a test"); poster.deletePin("http:///www.example.com/bar"); ``` -[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/src/main/java/net/thauvin/erik/pinboard/JavaExample.java#L40) +[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/src/main/java/net/thauvin/erik/pinboard/JavaExample.java) Your API authentication token is available on the [Pinboard settings page](https://pinboard.in/settings/password). @@ -54,6 +54,9 @@ dependencies { compile 'net.thauvin.erik:pinboard-poster:0.9.3' } ``` +[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/build.gradle)\ + +[View Kotlin DSL Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/koltin/build.gradle.kts) ### Kobalt