Re: [twitter-dev] Can't send options to twitter.lib.php functions
On 24-Jan-10, at 2:43 AM, Sam wrote: // fetch your @mentions in json $statuses = $twitter->getFriendsTimeline(array('count'=>50), 'rss'); Since most of those options would be Strings, I would think you need quotes around that 50: $statuses = $twitter->getFriendsTimeline(array('count'=>'50'), 'rss'); -Jeff
[twitter-dev] Can't send options to twitter.lib.php functions
Hello, I'm using twitter.lib.php class which is great. However, I can't seem to pass on options to the functions that I'm calling. In this case, I'd like to change the count of the friends' statuses to 50. But it still is showing me only 20. What am I missing? Any help greatly appreciated. Thanks! // require the twitter library require "twitter.lib.php"; // your twitter username and password $username = "username"; $password = "passwor"; // initialize the twitter class $twitter = new Twitter($username, $password); // fetch your @mentions in json $statuses = $twitter->getFriendsTimeline(array('count'=>50), 'rss'); // print rss echo $statuses;