Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseidman authored Dec 14, 2021
1 parent 252009f commit 8d06ed2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pocket_widget.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: pink; icon-glyph: chevron-circle-down;

let attributes = {
"consumerKey": "YOUR-CONSUMER-KEY",
"accessToken": "YOUR-ACCESS-TOKEN",
"favorite": 1 // Enter 0 for "Unread"; enter 1 for "Favorites"
}

let pocket_widget = importModule("/pocket_widget/pocket_widget_code.js"),
w = new ListWidget();

pocket_widget.titleLine(w, attributes.favorite)

await pocket_widget.articleEntries(w,
await pocket_widget.data(attributes))

w.presentMedium()
Script.setWidget(w)

0 comments on commit 8d06ed2

Please sign in to comment.