From 014d3fd4f2c5c2460fa9c75c02cd0bf3c867ad16 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 21 Jul 2009 12:26:37 -0400 Subject: [PATCH] Add the last missing method for statuses/* - followers. --- .../lib/Horde/Service/Twitter/Statuses.php | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php b/framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php index 261c79479..bed0f50b4 100644 --- a/framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php +++ b/framework/Service_Twitter/lib/Horde/Service/Twitter/Statuses.php @@ -177,4 +177,30 @@ class Horde_Service_Twitter_Statuses return $this->_twitter->request->get($url, $params); } + /** + * Returns a user's followers, each with current status inline. They are + * ordered by the order in which they were added as friends, 100 at a time. + * + * http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0friends + * + * @param array $params Parameters for the friends_timeline call + *
+     *     id         - For this user id or screen name.
+     *                  Current user if left out.
+     *     user_id    - Specfies the ID of the user for whom to return the
+     *                  user_timeline. Helpful for disambiguating when a valid
+     *                  user ID is also a valid screen name.
+     *     screen_id  - Specfies the screen name of the user for whom to return
+     *                  the user_timeline. Helpful for disambiguating when a
+     *                  valid screen name is also a user ID.
+     *     page       - The page number to return (note there are pagination limits)
+     *   
+ * @return unknown_type + */ + public function followers($params = array()) + { + $url = $this->_endpoint . 'followers.' . $this->_format; + return $this->_twitter->request->get($url, $params); + } + } -- 2.11.0