Rename saved_search_id API.get_saved_search parameter to id
authorHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:22:32 +0000 (00:22 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:22:32 +0000 (00:22 -0600)
tweepy/api.py

index 4dc06402827d55df03a6743136895cae73d743b7..5acfdfee56a88d3e83ca9baee6382e7f0be7279f 100644 (file)
@@ -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')