Add function for sending a tweet

This commit is contained in:
Klaus-Uwe Mitterer 2016-12-23 17:41:24 +01:00
parent 9b0dbf8bf1
commit 1ed5aa25ae

View file

@ -21,6 +21,9 @@ class twObject:
def whoami(self):
return self.auth.get_username()
def tweet(self, text, reply = 0):
return self.api.update_status(text, reply)
def getFollowerIDs(two=twObject()):
''' Returns 5,000 follower IDs at most '''
return two.api.followers_ids(screen_name=twObject().whoami())