Add retweet method
This commit is contained in:
parent
c1bb677d40
commit
f8d9568271
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ class twObject:
|
||||||
self.auth.set_access_token(ato, ase)
|
self.auth.set_access_token(ato, ase)
|
||||||
self.api = tweepy.API(self.auth)
|
self.api = tweepy.API(self.auth)
|
||||||
|
|
||||||
|
def retweet(self, id):
|
||||||
|
self.api.retweet(id)
|
||||||
|
|
||||||
def delete(self, id):
|
def delete(self, id):
|
||||||
self.api.destroy_status(id)
|
self.api.destroy_status(id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue