diff options
Diffstat (limited to 'integration/wallabag')
-rw-r--r-- | integration/wallabag/wallabag.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/integration/wallabag/wallabag.go b/integration/wallabag/wallabag.go index 58d9c5b..02a36b5 100644 --- a/integration/wallabag/wallabag.go +++ b/integration/wallabag/wallabag.go @@ -24,6 +24,10 @@ type Client struct { // AddEntry sends a link to Wallabag. func (c *Client) AddEntry(link, title string) error { + if c.baseURL == "" || c.clientID == "" || c.clientSecret == "" || c.username == "" || c.password == "" { + return fmt.Errorf("wallabag: missing credentials") + } + accessToken, err := c.getAccessToken() if err != nil { return err |