From d3d2abec91f678d660f53af259fe9ebce7ff5a11 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 13 Feb 2021 14:00:18 -0600 Subject: [PATCH] Require id parameter for API.create_favorite --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index bccff3d..e04576c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -751,11 +751,11 @@ class API: ) @payload('status') - def create_favorite(self, *args, **kwargs): + def create_favorite(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-create """ return self.request( - 'POST', 'favorites/create', *args, endpoint_parameters=( + 'POST', 'favorites/create', id, *args, endpoint_parameters=( 'id', ), **kwargs ) -- 2.25.1