Skip to content

Commit

Permalink
Rename environment_name API.search_30_day parameter to label
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 19, 2021
1 parent 445da4e commit 6c66c60
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 @@ -1148,11 +1148,11 @@ def search(self, q, **kwargs):

@pagination(mode='next')
@payload('status', list=True)
def search_30_day(self, environment_name, *args, **kwargs):
def search_30_day(self, label, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search
"""
return self.request(
'GET', f'tweets/search/30day/{environment_name}', *args,
'GET', f'tweets/search/30day/{label}', *args,
endpoint_parameters=(
'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
), **kwargs
Expand Down

0 comments on commit 6c66c60

Please sign in to comment.