From 5e47d87529fd3125be40d98945dbc3c9d980b4c5 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 20:28:36 -0600 Subject: [PATCH] Replace API.get_saved_search id allowed_param with parameter Replace API.get_saved_search id allowed_param with saved_search_id parameter --- tweepy/api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 861c624..3ad43d2 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -857,15 +857,14 @@ class API: require_auth=True, **kwargs ) - def get_saved_search(self, *args, **kwargs): + def get_saved_search(self, saved_search_id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id - :allowed_param: 'id' + :allowed_param: """ return bind_api( *args, api=self, - path='/saved_searches/show/{id}.json', + path=f'/saved_searches/show/{saved_search_id}.json', payload_type='saved_search', - allowed_param=['id'], require_auth=True, **kwargs ) -- 2.25.1