Skip to content

HartasCuerdas/ruPocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruPocket Dependency Status

Code Climate Inline docs

Current phase: PocketTags - Stats for Pocket Tags

We use Pocket, we need stats for our Tags on Pocket.

Gems

As you could see in Gemfile, we use:

pocket-ruby

Thanks to alexchee, author of pocket-api. He advise me about pocket-ruby.

app.rb is based on demo-server.rb from pocket-ruby.

pocket-console

This gem provides methods to output stats about Pocket tags.

pocket-classes

Classes to work with Pocket.

Use your Consumer Key

Use your consumer key in app.rb file

Pocket.configure do |config|
  config.consumer_key = 'YOUR-CONSUMER_KEY'
end

Run script

ruby app.rb

Get a valid access token

open http://localhost:4567/oauth/connect
#authorize your Pocket app

Generate stats

open http://localhost:4567/tags

Generate stats (using cached data)

open http://localhost:4567/tags-cache

Generate stats for specific terms

open http://localhost:4567/tags-cache-specific-terms

Generate stats for specific terms (using cached data)

open http://localhost:4567/tags-cache-specific-terms-cache

Where my stats are?

Stats are printed to the console

In console you will get your stats, like this...

Pocket Tagging Stats

I think that stats are wrong

# Try to process more saved items.
# Increment count parameter to 100, for instance.
# :count => 100
info = client.retrieve(:detailType => :complete, :count => 100)

Releases

No releases published

Packages

No packages published

Languages