pocket_api icon indicating copy to clipboard operation
pocket_api copied to clipboard

uninitialized constant PocketApi::Connection (NameError)

Open srt32 opened this issue 11 years ago • 3 comments

I'm trying to get a simple server going to get the hang of the functionality in the gem and am getting a NameError when I execute PocketApi::Connection.client_key = API_KEY

uninitialized constant PocketApi::Connection (NameError)

Any idea what I'm doing wrong? Do you have an open source app using the pocket_api gem to which you could point me? I'd love to see a working example of the gem.

Thanks. Happy holidays! :santa:

srt32 avatar Dec 25 '13 18:12 srt32

Hi @srt32 in the first line of your script you need to include the gem.

require 'pocket_api'

adagio avatar Oct 24 '14 03:10 adagio

Sorry, I haven't looked at this project in a while. Are you still having that problem after @adagio's suggestion?

I was using this on a project to communicate with Pocket, then I think I switched to this one: https://github.com/turadg/pocket-ruby

It has more stars and probably more active than this PocketApi gem. I don't have a sample repo that uses this gem yet.

alexchee avatar Oct 24 '14 04:10 alexchee

Thank you @alexchee , for the information. Today I have worked with pocket-ruby, and got this

pocket-tagging-stats

here is the code -> https://github.com/HartasCuerdas/ruPocket

adagio avatar Oct 25 '14 06:10 adagio