From 69efd92fe56240420d791f058fd557f3a0607be6 Mon Sep 17 00:00:00 2001 From: legokichi Date: Wed, 25 May 2016 01:57:51 +0900 Subject: [PATCH] add unretweet api --- tweepy/api.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.25.1