GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andyw8/pocket-ruby: Ruby wrapper for the Pocket REST and Search APIs

This repository was archived by the owner on Jul 7, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

120 Commits
120 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.ruby-version
.ruby-version
 
 
.yardopts
.yardopts
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
demo-server.rb
demo-server.rb
 
 
pocket-ruby.gemspec
pocket-ruby.gemspec
 
 

Repository files navigation

This repo is archived due to the shutdown of Pocket.

The readwise gem may be a good alternative.


pocket-ruby

Code Climate Gem Version

Ruby API for v3 of the Pocket API (formerly Read It Later)

Written by and previously maintained by @turadg.

Usage

Clone the repo and refer to demo-server.rb for examples on how to interact with the Pocket API.

git clone
cd pocket-ruby
bundle install
ruby demo-server.rb

Note: Changes to the demo-server.rb will require a restart to take effect (or you can use rerun).

Pocket-Ruby can be installed via the gem, gem install pocket-ruby

Or via bundler, gem 'pocket-ruby'

Pocket API Notes

Below are some aspects of the Pocket API that aren't covered in the official documentation, or that have been observed:

  • For very long articles, the maximum reported word_count is 65535, even if the article is longer.
  • If a count isn't specified, the Retreive call will return maximum of 5000 items.
  • The API response may contain a number of undocumented fields, including:
    • amp_url
    • domain_metadata
    • is_index
    • lang (ISO_639-1?)
    • listen_duration_estimate
    • sort_id
    • time_to_read
    • top_image_url
  • Every integer value is returned as a string, except for time_to_read, listen_duration_estimate and sort_id.
  • The time_to_read is in minutes, but listen_duration_estimate is in seconds.
  • If an article's status is "2" ('should be deleted') then most fields will not be present.

About

Ruby wrapper for the Pocket REST and Search APIs

Resources

Readme
MIT license
Activity

Stars

101 stars

Watchers

1 watching

Forks

38 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.