aboutsummaryrefslogtreecommitdiffhomepage
path: root/integration/nunuxkeeper/nunuxkeeper.go
diff options
context:
space:
mode:
Diffstat (limited to 'integration/nunuxkeeper/nunuxkeeper.go')
-rw-r--r--integration/nunuxkeeper/nunuxkeeper.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/integration/nunuxkeeper/nunuxkeeper.go b/integration/nunuxkeeper/nunuxkeeper.go
index 4627e8d..4ea5c45 100644
--- a/integration/nunuxkeeper/nunuxkeeper.go
+++ b/integration/nunuxkeeper/nunuxkeeper.go
@@ -9,7 +9,7 @@ import (
"net/url"
"path"
- "github.com/miniflux/miniflux/http"
+ "github.com/miniflux/miniflux/http/client"
)
// Document structure of a Nununx Keeper document
@@ -39,8 +39,10 @@ func (c *Client) AddEntry(link, title, content string) error {
if err != nil {
return err
}
- client := http.NewClientWithCredentials(apiURL, "api", c.apiKey)
- response, err := client.PostJSON(doc)
+
+ clt := client.New(apiURL)
+ clt.WithCredentials("api", c.apiKey)
+ response, err := clt.PostJSON(doc)
if response.HasServerFailure() {
return fmt.Errorf("nunux-keeper: unable to send entry, status=%d", response.StatusCode)
}