[Solar-talk] Delicious API wrapper

Travis Swicegood development at domain51.com
Wed Oct 25 18:18:01 PDT 2006


Hey all,

For anyone who's interested in trying out some bleeding edge code, I've 
put together a del.icio.us wrapper for Solar.  It's in my repo at:
     https://svn.domain51.net/svn/d51Solar/trunk/

I've tagged just the del.icio.us code here:
    https://svn.domain51.net/svn/d51Solar/tags/delicious/v0.1/

The code isn't commented yet, but everything works.  Look at 
Domain51_Service_Delicious for an example of what's required for setting 
up the username/password, then API calls go something like:

$delicious = Solar::factory('Domain51_Service_Delicious');
$delicious->posts()->update(); // return last update
$delicious->posts()->all('solar'); // returns all posts tagged 'solar'
$delicious->tags()->get(); // returns an array of all of the used tags

For full documentation of the API, check out the API page on 
del.icio.us: http://del.icio.us/help/api/  I only deviated for bundles 
and update.  The update call happens under posts()->update() instead of 
update(), and bundles happen under tags()->bundles().

The only known issue is that tags()->bundles()->all() doesn't work.  It 
doesn't work even going directly to the the URL via the browser, so I'm 
not  sure what's up with that.

v0.2 will include documentation to explain what's going on.  Thoughts, 
comments, etc., are always welcome.

-Travis


More information about the solar-talk mailing list