Code Monkey home page Code Monkey logo

pocket's Issues

Tags?

Thank you for this, really useful - unfortunately it doesn’t seem to be pulling back the tags for articles?

Python 3.4.x compatibility

Hi,
With the actual api and Python 2.7.x I have no problem to use pocket_instance.add() like I did here

But the same code with Python 3.4.x give me :

  File "/home/foxmask/.pyenv/versions/django-th-340/django_th/th_pocket/my_pocket.py", line 82, in save_data
    url=data['link'], title=title, tags=(trigger.tag.lower()))
  File "/home/foxmask/.pyenv/versions/django-th-340/lib/python3.4/site-packages/pocket.py", line 46, in wrapped
    arg_names = list(fn.func_code.co_varnames)
AttributeError: 'function' object has no attribute 'func_code'

No tags in response

  • if I call the get() method I don't get the tag attribute in the list elements, as it is instead written in the official API documentation.

  • if I call the get() method with a tag parameter I get again the full list of articles, not the tag-filtered one

  • if I call the tags_add() method, no tag is added to the selected item

So, it seems like a problem with tags implementation, anyone experiencing this?

Dependencies

I was wondering if the requirements.txt is up-to-date?
Are you sure that the modules distribute and nose are required?

Can't authorize my app

I'm trying to use this to interface with Pocket on a Raspberry Pi but when I try to do the initial authorisation I get the error 'There was a problem trying to connect this app to Pocket. Please try again.' when I go to the authorisation URL.

Any idea what's causing this?

Change the method get_access_token to get_credentials

I'm not sure if I missed something but I couldn't find a way to retrieve users username on this API wrapper. Given that it is available in the same response as get_access_token i'd suggest to change that method name to get_credentials to let developers get the username as well as the access_token.
Example:

credentials = Pocket.get_credentials(
    consumer_key=settings.POCKET_CONSUMER_KEY, 
    code=request_token
)

access_token = credentials['access_token']
username = credentials['username']

API v3

I don't know if this is still being maintained but if it is could you update to the new API v3

Pocket object has no attribute 'api_key'

I am a beginner. There is a problem I found.

Best regards

Traceback (most recent call last):
File "./pocket_test.py", line 12, in
main()
File "./pocket_test.py", line 8, in main
pocket_instance = pocket.Pocket("name", "password", "consumer_key")
File "/usr/lib/python2.7/site-packages/pocket.py", line 44, in init
'apikey': self.api_key,
AttributeError: 'Pocket' object has no attribute 'api_key'

PS: Is api_key is the consumer_key?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.