From 7e5f39efa01265007f9527d9584879dd7ff1cae5 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:22:32 -0600 Subject: [PATCH] Rename saved_search_id API.get_saved_search parameter to id --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 4dc0640..5acfdfe 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -871,11 +871,11 @@ class API: return self.request('GET', 'saved_searches/list', **kwargs) @payload('saved_search') - def get_saved_search(self, saved_search_id, *args, **kwargs): + def get_saved_search(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id """ return self.request( - 'GET', f'saved_searches/show/{saved_search_id}', *args, **kwargs + 'GET', f'saved_searches/show/{id}', *args, **kwargs ) @payload('saved_search') -- 2.25.1