Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.0

Bug #5173 getRecentPosts fails
Submitted: 2005-08-21 22:23 UTC Modified: 2005-09-22 10:59 UTC
From: luke at fsc dot org dot au Assigned: schst
Status: Closed Package: Services_Delicious
PHP Version: 4.3.10 OS: debian linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-21 22:23 UTC] luke at fsc dot org dot au
Description: ------------ calling the getRecentPosts function returns zero results due to incorrect statement in Services/Delicious.php Fix:- replace line #225 in Services/Delicious.php : $result = $this->_sendRequest('posts', 'get', $params); Change as follows: $result = $this->_sendRequest('posts', 'recent', $params); Test script: --------------- <?php require_once 'config.php'; require_once 'Services/Delicious.php'; $dlc = &new Services_Delicious($username, $password); $posts = $dlc->getRecentPosts(); echo '<pre>'; print_r($posts); echo '</pre>'; ?> Expected result: ---------------- should return 15 most recent entries from del.icio.us web site for $username; eg. Array ( [0] => Array ( [href] => http://mrtwig.net/board/viewtopic.php?t=899 [description] => South Park [hash] => f147b7c5fbc7c8c25963bacca0b631f8 [tag] => Array ( [0] => film [1] => tv ) [time] => 2005-08-20T13:24:16Z ) [1] => Array ( [href] => http://pear.php.net/package/Services_Delicious [description] => Services_Delicious [hash] => f1b8052581b76f614ebc6ed2570320af [tag] => Array ( [0] => it [1] => folksonomy ) [time] => 2005-08-19T14:36:00Z ) [2] => Array ( [href] => http://www.kriskrug.com/?p=276 [description] => del.icio.us Tools, Plugins and Add-ons [hash] => 137f2e74ececa17c2e0775186256096e [tag] => Array ( [0] => it [1] => folksonomy ) [time] => 2005-08-19T13:13:58Z ) [3] => Array ( [href] => http://httpd.apache.org/docs/2.0/howto/ssi.html [description] => Apache Server Side Includes [hash] => 94ceb2964649cd423bcc5d743ca3a174 [tag] => Array ( [0] => it [1] => apache [2] => ssi ) [time] => 2005-08-19T12:01:51Z ) [4] => Array ( [href] => http://sourceforge.net/projects/scuttle/ [description] => Scuttle - delicious clone [hash] => a7e56cba9c43b0565236d1b2e0997889 [tag] => Array ( [0] => it [1] => folksonomy ) [time] => 2005-08-19T11:58:15Z ) Actual result: -------------- Array ( )

Comments

 [2005-09-22 10:59 UTC] schst
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.