models: add followers_ids to User
authorBas Westerbaan <bas@fsfe.org>
Thu, 17 Dec 2009 06:40:19 +0000 (00:40 -0600)
committerJoshua <jroesslein@gmail.com>
Thu, 17 Dec 2009 06:40:19 +0000 (00:40 -0600)
Merged from bwesterb/tweepy @ 4404b178839bcfccbd46cdff4753a9274ae6acd6

Signed-off-by: Joshua <jroesslein@gmail.com>
CHANGELOG
tweepy/models.py

index c0dcf8cc9326bc03aa854c1ca665c6e202b32690..da2ccdc066df19606744b1c06b60a970927bd2a9 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,7 @@ during upgrade will be listed here.
     - Added some new helper methods to List model
     - User model
         - Added lists_memberships, lists_subscriptions, and lists helpers
+        - Added followers_ids helper
 + API
     - lists(), lists_memberships(), and lists_subscriptions() now
         take an "user" parameter for specifying which user to query.
index 5fcd43a27ca37b6b3052a15fd91d56f11113f65c..83d70ff3df3cf8bd915a909e1d7176fc88e7e065 100644 (file)
@@ -61,6 +61,9 @@ class User(Model):
     def lists(self):
         return self._api.lists(user=self.screen_name)
 
+    def followers_ids(self):
+        return self._api.followers_ids(user_id=self.id)
+
 
 class DirectMessage(Model):