@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