summaryrefslogtreecommitdiff
path: root/integration/pocket/pocket.go
diff options
context:
space:
mode:
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 16a826c8..77f77d4b 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}
}