Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
friends_timeline is deprecated in API v1.1, remove it from all exampl…
Browse files Browse the repository at this point in the history
…es and ircbot
  • Loading branch information
boogheta committed Jan 16, 2014
1 parent 3962a65 commit ad0aade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions twitter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,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(
Expand Down
2 changes: 1 addition & 1 deletion twitter/ircbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def __init__(self, configFilename):
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)
Expand Down

0 comments on commit ad0aade

Please sign in to comment.