aboutsummaryrefslogtreecommitdiffhomepage
path: root/integration/pocket/pocket.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-05-21 12:19:56 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-05-21 19:58:36 -0400
commitb270159aae97359afe02f3c4843fa0f4e9a1a1b6 (patch)
tree290eef118ce6ccab49471d3673bb7d51b24bb4c2 /integration/pocket/pocket.go
parent44decae557a6f78eda57b8f407d35b10233538e4 (diff)
Offer the possibility to set Pocket Consumer Key as environment variable
Diffstat (limited to 'integration/pocket/pocket.go')
-rw-r--r--integration/pocket/pocket.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/integration/pocket/pocket.go b/integration/pocket/pocket.go
index 16a826c..77f77d4 100644
--- a/integration/pocket/pocket.go
+++ b/integration/pocket/pocket.go
@@ -12,8 +12,8 @@ import (
// Client represents a Pocket client.
type Client struct {
- accessToken string
consumerKey string
+ accessToken string
}
// AddURL sends a single link to Pocket.
@@ -50,6 +50,6 @@ func (c *Client) AddURL(link, title string) error {
}
// NewClient returns a new Pocket client.
-func NewClient(accessToken, consumerKey string) *Client {
- return &Client{accessToken: accessToken, consumerKey: consumerKey}
+func NewClient(consumerKey, accessToken string) *Client {
+ return &Client{consumerKey, accessToken}
}