Skip to content

Commit

Permalink
Rename saved_search_id API.get_saved_search parameter to id
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 14, 2021
1 parent c5f5b4b commit 7e5f39e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,11 +871,11 @@ def saved_searches(self, **kwargs):
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')
Expand Down

0 comments on commit 7e5f39e

Please sign in to comment.