mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Make sure integrations are configured before to make any HTTP requests
This commit is contained in:
parent
31da4db14f
commit
7a1653a2e9
5 changed files with 20 additions and 4 deletions
|
@ -18,6 +18,10 @@ type Client struct {
|
|||
|
||||
// AddBookmark sends a link to Pinboard.
|
||||
func (c *Client) AddBookmark(link, title, tags string, markAsUnread bool) error {
|
||||
if c.authToken == "" {
|
||||
return fmt.Errorf("pinboard: missing credentials")
|
||||
}
|
||||
|
||||
toRead := "no"
|
||||
if markAsUnread {
|
||||
toRead = "yes"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue