]> jfr.im git - z_archive/twitter.git/commitdiff
friends_timeline is deprecated in API v1.1, remove it from all examples and ircbot
authorBenjamin Ooghe-Tabanou <redacted>
Thu, 16 Jan 2014 17:00:30 +0000 (18:00 +0100)
committerRouxRC <redacted>
Mon, 3 Feb 2014 23:03:55 +0000 (00:03 +0100)
twitter/api.py
twitter/ircbot.py

index f3ba89f24c7d8d7fab88dcb01da6fcee942813fd..d1ded3431934092fb8b8651b1195bde8de0ee9e9 100644 (file)
@@ -289,11 +289,8 @@ class Twitter(TwitterCall):
         # Get your "home" timeline
         t.statuses.home_timeline()
 
-        # Get a particular friend's timeline
-        t.statuses.friends_timeline(id="billybob")
-
-        # Also supported (but totally weird)
-        t.statuses.friends_timeline.billybob()
+        # Get a particular friend's tweets
+        t.statuses.user_timeline(user_id="billybob")
 
         # Update your status
         t.statuses.update(
index e683316a72e61f92ac676f56201f84a11346e90a..60914172d721af32aa88ec6c3eebf0d4bb16cdd6 100644 (file)
@@ -164,7 +164,7 @@ class TwitterBot(object):
     def check_statuses(self):
         debug("In check_statuses")
         try:
-            updates = reversed(self.twitter.statuses.friends_timeline())
+            updates = reversed(self.twitter.statuses.home_timeline())
         except Exception as e:
             print("Exception while querying twitter:", file=sys.stderr)
             traceback.print_exc(file=sys.stderr)