Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the JSON API #5

Open
GoogleCodeExporter opened this issue Apr 20, 2016 · 8 comments
Open

Add support for the JSON API #5

GoogleCodeExporter opened this issue Apr 20, 2016 · 8 comments

Comments

@GoogleCodeExporter
Copy link

In addition to the XML API that pydelicious supports, delicious also has a
JSON API for doing certain things:
http://del.icio.us/help/json/

Some of the functions are overlaps with what's in the XML, but some (like
url) are unique to JSON. None of the JSON functions seem to require
authentication, so it's pretty trivial to hack it up. The main value-add
would be choosing a JSON library so that delicious developers don't have to
think about that.

Before putting a lot of work into this it'd be nice to learn what the
development plans are for the delicious API.

Original issue reported on code.google.com by [email protected] on 17 Feb 2007 at 4:20

@GoogleCodeExporter
Copy link
Author

That sounds like a great idea, Nelson.  It's especially cool if the JSON version
doesn't require authentication or a password.  That way developers can offer 
services
to users without the awkward process of asking for their del.icio.us password.

I must admit, there are no development plans.  When I found this project it was
broken, and abandoned on some guy's website.  He never responded to my emails 
so I
brought it over here to a proper home.  My only goals were to make it work 
again.  

If you have any ideas for long term development plans (a roadmap) please 
propose it.
 I'm sure I'll like it.

Original comment by [email protected] on 17 Feb 2007 at 5:23

@GoogleCodeExporter
Copy link
Author

Would this help (http://json-rpc.org/)?

Original comment by [email protected] on 17 Feb 2007 at 5:42

@GoogleCodeExporter
Copy link
Author

To be honest, I'm not leaping into implementing my proposed changes. More just
registering thoughts as they occur to me. Because there's no authentication the 
JSON
calls are pretty easy to hack up without a library, so I haven't had a pressing 
need.

json-rpc is not quite the same thing. I'd use simplejson to do the parsing
(http://cheeseshop.python.org/pypi/simplejson).

Original comment by [email protected] on 19 Feb 2007 at 5:43

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

If you trust that the results of the JSON API calls are save to pass to python
'eval', these are really easy.  Attached is a version of pydelicious.py that 
uses
this strategy and implements 'network', 'fans', and 'url/data'.  It didn't seem 
worth
re-implementing the "posts" and "tags" since I think they produce the same data 
as
the "api" equivalents.

Feel free to integrate these changes into the library if you like.  I wasn't 
quite
sure how to write tests for them that wouldn't depend on a network call, but 
I've
tested interactively.

Original comment by [email protected] on 5 Apr 2008 at 11:27

Attachments:

@GoogleCodeExporter
Copy link
Author

ok tis is a bit late, but i cant see any new json code in the provided  
pydelicioustest.py. 

Anyway, adding JSON should be trivial but i've not got around to it, perhaps if
someone can show me why the data is so cool... :)

as for the library, simplejson and/or json work nicely.

Original comment by [email protected] on 28 Nov 2008 at 4:15

@GoogleCodeExporter
Copy link
Author

as of 0.5.2-rc1 (rev24) there is a getfeed function that can fetch any v2 feed 
from
del.icio.us. But it needs parsing, testing...

Original comment by [email protected] on 28 Nov 2008 at 8:30

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 11 Sep 2009 at 11:42

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant