Replace API.get_saved_search id allowed_param with parameter
authorHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 02:28:36 +0000 (20:28 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 29 Jan 2021 02:28:36 +0000 (20:28 -0600)
Replace API.get_saved_search id allowed_param with saved_search_id parameter

tweepy/api.py

index 861c624779d210d2b36aefbb0b2913bd3e83ae53..3ad43d2ecf6194742c42bb38fdbdc1f9bf7fa0ec 100644 (file)
@@ -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
         )