Updated dependencies
This commit is contained in:
parent
c48a9c902e
commit
56fa17703c
8 changed files with 19 additions and 29 deletions
14
README.md
14
README.md
|
@ -1,6 +1,6 @@
|
|||
# [Pinboard](https://pinboard.in) Poster for Kotlin/Java
|
||||
|
||||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/pinboard-poster/releases/latest) [](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22pinboard-poster%22)
|
||||
[](https://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/pinboard-poster/releases/latest) [](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22pinboard-poster%22)
|
||||
|
||||
[](https://snyk.io/test/github/ethauvin/pinboard-poster?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_pinboard-poster) [](https://github.com/ethauvin/pinboard-poster/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/pinboard-poster/tree/master)
|
||||
|
||||
|
@ -14,8 +14,8 @@ A small Kotlin/Java/Android library for posting to [Pinboard](https://pinboard.i
|
|||
|
||||
val poster = PinboardPoster("user:TOKEN")
|
||||
|
||||
poster.addPin("http://www.example.com/foo", "This is a test")
|
||||
poster.deletePin("http:///www.example.com/bar")
|
||||
poster.addPin("https://www.example.com/foo", "This is a test")
|
||||
poster.deletePin("https:///www.example.com/bar")
|
||||
|
||||
```
|
||||
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/kotlin/src/main/kotlin/net/thauvin/erik/pinboard/samples/KotlinExample.kt)
|
||||
|
@ -25,8 +25,8 @@ poster.deletePin("http:///www.example.com/bar")
|
|||
|
||||
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");
|
||||
poster.addPin("https://www.example.com/foo", "This is a test");
|
||||
poster.deletePin("https:///www.example.com/bar");
|
||||
```
|
||||
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/src/main/java/net/thauvin/erik/pinboard/samples/JavaExample.java)
|
||||
|
||||
|
@ -51,7 +51,7 @@ Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](htt
|
|||
The `addPin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_add):
|
||||
|
||||
```kotlin
|
||||
poster.addPin(url = "http://www.example.com",
|
||||
poster.addPin(url = "https://www.example.com",
|
||||
description = "This is the title",
|
||||
extended = "This is the extended description.",
|
||||
tags = "tag1 tag2 tag3",
|
||||
|
@ -70,7 +70,7 @@ It returns `true` if the bookmark was added successfully, `false` otherwise.
|
|||
The `deletePin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_delete):
|
||||
|
||||
```kotlin
|
||||
poster.deletePin(url = "http://www.example.com/")
|
||||
poster.deletePin(url = "https://www.example.com/")
|
||||
```
|
||||
|
||||
It returns `true` if the bookmark was deleted successfully, `false` otherwise.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue