From: legokichi Date: Tue, 24 May 2016 16:57:51 +0000 (+0900) Subject: add unretweet api X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69efd92fe56240420d791f058fd557f3a0607be6;p=tweepy.git add unretweet api --- diff --git a/tweepy/api.py b/tweepy/api.py index b925da3..f46b660 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -259,6 +259,21 @@ class API(object): require_auth=True ) + @property + def unretweet(self): + """ :reference: https://dev.twitter.com/rest/reference/post/statuses/unretweet/%3Aid + :allowed_param:'id' + """ + return bind_api( + api=self, + path='/statuses/unretweet/{id}.json', + method='POST', + payload_type='status', + allowed_param=['id'], + require_auth=True + ) + + @property def retweets(self): """ :reference: https://dev.twitter.com/rest/reference/get/statuses/retweets/%3Aid