You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,16 @@ Easy set-up:
16
16
You will need a consumer key and access token to query your user data with the Pocket API. To create those credentials:
17
17
* Follow the documentation on the [Pocket: Developer API](https://getpocket.com/developer/) site.
18
18
* 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