Reworked PinConfig with required parameters, etc.
This commit is contained in:
parent
0f9606391e
commit
9036a32239
12 changed files with 94 additions and 57 deletions
14
README.md
14
README.md
|
@ -22,9 +22,9 @@ A small library for posting to [Pinboard](https://pinboard.in).
|
|||
|
||||
val poster = PinboardPoster("user:TOKEN")
|
||||
|
||||
poster.addPin("https://www.example.com/foo", "This is a test")
|
||||
poster.addPin("https://examples.com", "This is a test", tags = arrayOf("foo", "bar"))
|
||||
poster.deletePin("https:///www.example.com/bar")
|
||||
poster.addPin("https://example.com/foo", "This is a test")
|
||||
poster.addPin("https://example.com", "This is a test", tags = arrayOf("foo", "bar"))
|
||||
poster.deletePin("https://example.com/bar")
|
||||
|
||||
```
|
||||
|
||||
|
@ -36,13 +36,11 @@ poster.deletePin("https:///www.example.com/bar")
|
|||
|
||||
final PinboardPoster poster = new PinBboardPoster("user:TOKEN");
|
||||
|
||||
poster.addPin("https://www.example.com/foo", "This is a test");
|
||||
poster.addPin(new PinConfig.Builder()
|
||||
.url("https://example.com")
|
||||
.description("This is a test")
|
||||
poster.addPin("https://example.com/foo", "This is a test");
|
||||
poster.addPin(new PinConfig.Builder("https://example.com", "This is a test")
|
||||
.tags("foo", "bar")
|
||||
.build());
|
||||
poster.deletePin("https:///www.example.com/bar");
|
||||
poster.deletePin("https://example.com/bar");
|
||||
```
|
||||
|
||||
[View Examples](https://github.com/ethauvin/pinboard-poster/blob/master/examples)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue