Skip to content

Commit 353e624

Browse files
authored
Update README.md
1 parent e472a55 commit 353e624

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@ Easy set-up:
1616
You will need a consumer key and access token to query your user data with the Pocket API. To create those credentials:
1717
* Follow the documentation on the [Pocket: Developer API](https://getpocket.com/developer/) site.
1818
* Use one of the many third-party Pocket credential creation tools like [OneClickPocket](http://reader.fxneumann.de/plugins/oneclickpocket/auth.php) or [pocket-auth](https://github.com/mheap/pocket-auth).
19+
20+
## Preferences
21+
22+
The Pocket widget can be easily modified with these three lines of code in the pocket_widget.js file:
23+
24+
```
25+
let attributes = {
26+
"consumerKey": "YOUR-CONSUMER-KEY",
27+
"accessToken": "YOUR-ACCESS-TOKEN",
28+
"favorite": 1 // Enter 0 for "Unread"; enter 1 for "Favorites"
29+
}
30+
```
31+
Replace YOUR-CONSUMER-KEY and YOUR-ACCESS-TOKEN with the respective consumer key and access token for your account. To show your two most recent Pocket favorites in the widget, leave the "favorite" value as 1; changing the "favorite" value to 0 will show your two most recent unread saved articles. No modification of the pocket_widget/pocket_widget_code.js file is necessary.

0 commit comments

Comments
 (0)