mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Offer the possibility to set Pocket Consumer Key as environment variable
This commit is contained in:
parent
44decae557
commit
b270159aae
10 changed files with 31 additions and 19 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue