Neowasabi / pydelicious

Automatically exported from code.google.com/p/pydelicious
Other
0 stars 0 forks source link

Add support for the JSON API #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 nelson.m...@gmail.com on 17 Feb 2007 at 4:20

GoogleCodeExporter commented 8 years ago
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 gregpin...@gmail.com on 17 Feb 2007 at 5:23

GoogleCodeExporter commented 8 years ago
Would this help (http://json-rpc.org/)?

Original comment by gregpin...@gmail.com on 17 Feb 2007 at 5:42

GoogleCodeExporter commented 8 years ago
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 nelson.m...@gmail.com on 19 Feb 2007 at 5:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 joegermu...@gmail.com on 5 Apr 2008 at 11:27

Attachments:

GoogleCodeExporter commented 8 years ago
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 berend.v...@gmail.com on 28 Nov 2008 at 4:15

GoogleCodeExporter commented 8 years ago
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 berend.v...@gmail.com on 28 Nov 2008 at 8:30

GoogleCodeExporter commented 8 years ago

Original comment by berend.v...@gmail.com on 11 Sep 2009 at 11:42