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-22 03:23 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-22 03: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 15:59 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!