WP Manifestindependent plugin directory
manifest / integrations / boros-add-to-pocket

Boros Add to Pocket WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress plugin to add URL to Pocket via API. Created because the official Chrome extension stopped working 😢.

★ 0stars
1.0.3latest · 4 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/alexkoti/boros-add-to-pocket/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress plugin to add URL to Pocket via API. Created because the official Chrome extension stopped working 😢.

Create a Pocket App

Visit https://getpocket.com/developer/, create new app and copy the "consumer key"

Method 1: wp-config.php installation:

Generate API keys via curl or Postman (ref: https://getpocket.com/developer/docs/authentication)

Register constant BOROS_POCKET in wp-config.php:

define( 'BOROS_POCKET', array('consumer_key' => 'XXXX', 'access_token' => 'XXXX', 'ajax_action' => 'XXXX') );

Access ajax address to get the bookmarklet: SITE.com/wp-admin/admin-ajax.php?action=batp

Method 2: wp-admin installation:

Acess "Settings > Add to Pocket"

  1. Save Consumer key field
  2. Click "Obtain a Request Token" button
  3. Click the "Authorize App" link and confirm authorization in Pocket page. You will be redirected back to WordPress
  4. Click "Obtain a Access Token" button

All steps are autosaved.

ToDo

  • [x] Move boros_add_to_pocket() functionality into a class
  • [x] Bookmarklet page design
  • [ ] Add tags controls in results page
  • [x] Better design in results page
  • [x] Custom ajax action name
  • [ ] Uninstall/Delete wp functions
  • [ ] Internationalization

Goals

My goals with this plugin are:

  1. Solve a problem: save links in GetPocket via API.
  2. Study some common challenges in WordPress development:
    • Authentication and queries to an external API.
    • WordPress options page creation, using native functions.
    • Dynamic interaction with form controls using AJAX requests.
  3. Maintain a public plugin with Github releases.
  4. Challenge: maintain all code in on file.

Releases

4 releases.

Tag
Published
1.0.3 latest
Apr 27, 2022 4 years ago
Apr 26, 2022 4 years ago
Apr 26, 2022 4 years ago
Apr 23, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Boros Add to Pocket 1.0.3 · audited by WP Registry

No security issues found.

Audited release
1.0.3
Findings
none
Worst severity
—
Content hash
5781173c7bfdde614462fdff…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.