adrianhust / pydelicious

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

New del.icio.us API does not fetch posts/all? #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
del.icio.us latest updates cause the following API path not to return any
XML data anymore:

 https://api.del.icio.us/v1/posts/all

Perhaps this has something to do with the size of my posts list. 
*Can anyone confirm this?*

E.g.:

>>> pydelicious.get_all(user, passwd)
(raises expat exception since there is no XML data available)

-or-

>>> pydelicious.DeliciousAPI(user, passwd).posts_all(_raw=True).read()
'<!-- fe02.api.del.ac4.yahoo.net uncompressed/chunked Fri Aug  8 06:50:45
PDT 2008 -->\n'

Solution
It seems that from now on the the URL query parameter 'hashes' should be
used for this API function. This will return a posts list with md5sums for
URL's and some other hash for the metadata. I.e.

<posts><post meta="56e71db30dc5cd617db01d440c967808"
url="200305b637e4ce457dcc9af78359436b"/></posts>

With this data the post(s) can be retrieved using
posts/get?hashes=<md5sum>[+<md5sum>]

A new option to retrieve the meta hash is also provided.
I'm not clear on how the meta hash is made. Presumably it is the md5sum of
some notation of the post attributes. I'll contact del.icio.us about this.

I will adapt the DeliciousAPI class for the new options while I'm writing a
script that can synchronize bookmarks with a local MySQL database.

Original issue reported on code.google.com by berend.v...@gmail.com on 8 Aug 2008 at 2:04

GoogleCodeExporter commented 9 years ago
closing as posts_all is working ok

Original comment by berend.v...@gmail.com on 27 Nov 2008 at 4:42