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

index 9f8143eeffdc92d538b5593fd99b17d9ac57c913..8b12148314e5e6dce2592dfe27f33d72efaae0b1 100644 (file)
@@ -887,12 +887,11 @@ class API:
         )
 
     @payload('saved_search')
-    def destroy_saved_search(self, saved_search_id, *args, **kwargs):
+    def destroy_saved_search(self, id, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id
         """
         return self.request(
-            'POST', f'saved_searches/destroy/{saved_search_id}', *args,
-            **kwargs
+            'POST', f'saved_searches/destroy/{id}', *args, **kwargs
         )
 
     @payload('list')