'GET', 'statuses/user_timeline', *args,
allowed_param=['user_id', 'screen_name', 'since_id', 'count',
'max_id', 'trim_user', 'exclude_replies',
- 'include_rts'], **kwargs
+ 'include_rts'],
+ require_auth=True, **kwargs
)
@pagination(mode='id')
"""
return self.request(
'GET', 'statuses/retweeters/ids', *args,
- allowed_param=['id', 'cursor', 'stringify_ids'], **kwargs
+ allowed_param=['id', 'cursor', 'stringify_ids'],
+ require_auth=True, **kwargs
)
@payload('user')
"""
return self.request(
'GET', 'users/show', *args,
- allowed_param=['id', 'user_id', 'screen_name'], **kwargs
+ allowed_param=['id', 'user_id', 'screen_name'],
+ require_auth=True, **kwargs
)
@payload('json')
'POST', 'users/lookup', list_to_csv(user_ids),
list_to_csv(screen_names), *args,
allowed_param=['user_id', 'screen_name', 'include_entities',
- 'tweet_mode'], **kwargs
+ 'tweet_mode'],
+ require_auth=True, **kwargs
)
def me(self):
return self.request(
'GET', 'friendships/show', *args,
allowed_param=['source_id', 'source_screen_name',
- 'target_id', 'target_screen_name'], **kwargs
+ 'target_id', 'target_screen_name'],
+ require_auth=True, **kwargs
)
@payload('relationship', list=True)
"""
return self.request(
'GET', 'friends/ids', *args,
- allowed_param=['id', 'user_id', 'screen_name', 'cursor'], **kwargs
+ allowed_param=['id', 'user_id', 'screen_name', 'cursor'],
+ require_auth=True, **kwargs
)
@pagination(mode='cursor')
return self.request(
'GET', 'friends/list', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
- 'skip_status', 'include_user_entities'], **kwargs
+ 'skip_status', 'include_user_entities'],
+ require_auth=True, **kwargs
)
@pagination(mode='cursor')
"""
return self.request(
'GET', 'friendships/incoming', *args,
- allowed_param=['cursor'], **kwargs
+ allowed_param=['cursor'],
+ require_auth=True, **kwargs
)
@pagination(mode='cursor')
"""
return self.request(
'GET', 'friendships/outgoing', *args,
- allowed_param=['cursor'], **kwargs
+ allowed_param=['cursor'],
+ require_auth=True, **kwargs
)
@pagination(mode='cursor')
return self.request(
'GET', 'followers/ids', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count'],
- **kwargs
+ require_auth=True, **kwargs
)
@pagination(mode='cursor')
return self.request(
'GET', 'followers/list', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
- 'skip_status', 'include_user_entities'], **kwargs
+ 'skip_status', 'include_user_entities'],
+ require_auth=True, **kwargs
)
@payload('json')
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-settings """
return self.request(
'GET', 'account/settings', *args,
- use_cache=False, **kwargs
+ require_auth=True, use_cache=False, **kwargs
)
@payload('json')
'end_sleep_time', 'time_zone',
'trend_location_woeid',
'allow_contributor_request', 'lang'],
- use_cache=False, **kwargs
+ require_auth=True, use_cache=False, **kwargs
)
@payload('user')
return self.request(
'GET', 'application/rate_limit_status', *args,
allowed_param=['resources'],
- use_cache=False, **kwargs
+ require_auth=True, use_cache=False, **kwargs
)
@payload('user')
return self.request(
'GET', 'favorites/list', *args,
allowed_param=['screen_name', 'user_id', 'max_id', 'count',
- 'since_id'], **kwargs
+ 'since_id'],
+ require_auth=True, **kwargs
)
@payload('status')
'GET', 'lists/statuses', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'since_id', 'max_id', 'count', 'include_entities',
- 'include_rts'], **kwargs
+ 'include_rts'],
+ require_auth=True, **kwargs
)
@payload('list')
return self.request(
'GET', 'lists/show', *args,
allowed_param=['owner_screen_name', 'owner_id', 'slug', 'list_id'],
- **kwargs
+ require_auth=True, **kwargs
)
@payload('list')
return self.request(
'GET', 'lists/members', *args,
allowed_param=['owner_screen_name', 'slug', 'list_id', 'owner_id',
- 'cursor'], **kwargs
+ 'cursor'],
+ require_auth=True, **kwargs
)
@payload('user')
return self.request(
'GET', 'lists/members/show', *args,
allowed_param=['list_id', 'slug', 'user_id', 'screen_name',
- 'owner_screen_name', 'owner_id'], **kwargs
+ 'owner_screen_name', 'owner_id'],
+ require_auth=True, **kwargs
)
@payload('list')
'GET', 'lists/subscribers', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'cursor', 'count', 'include_entities',
- 'skip_status'], **kwargs
+ 'skip_status'],
+ require_auth=True, **kwargs
)
@payload('user')
return self.request(
'GET', 'lists/subscribers/show', *args,
allowed_param=['owner_screen_name', 'slug', 'screen_name',
- 'owner_id', 'list_id', 'user_id'], **kwargs
+ 'owner_id', 'list_id', 'user_id'],
+ require_auth=True, **kwargs
)
@payload('json')
def trends_available(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-available """
- return self.request('GET', 'trends/available', *args, **kwargs)
+ return self.request('GET', 'trends/available', *args,
+ require_auth=True, **kwargs)
@payload('json')
def trends_place(self, *args, **kwargs):
"""
return self.request(
'GET', 'trends/place', *args,
- allowed_param=['id', 'exclude'], **kwargs
+ allowed_param=['id', 'exclude'],
+ require_auth=True, **kwargs
)
@payload('json')
"""
return self.request(
'GET', 'trends/closest', *args,
- allowed_param=['lat', 'long'], **kwargs
+ allowed_param=['lat', 'long'],
+ require_auth=True, **kwargs
)
@pagination(mode='id')
'GET', 'search/tweets', *args,
allowed_param=['q', 'lang', 'locale', 'since_id', 'geocode',
'max_id', 'until', 'result_type', 'count',
- 'include_entities'], **kwargs
+ 'include_entities'],
+ require_auth=True, **kwargs
)
@pagination(mode='next')
return self.request(
'GET', 'geo/reverse_geocode', *args,
allowed_param=['lat', 'long', 'accuracy', 'granularity',
- 'max_results'], **kwargs
+ 'max_results'],
+ require_auth=True, **kwargs
)
@payload('place')
""" :reference: https://developer.twitter.com/en/docs/geo/place-information/api-reference/get-geo-id-place_id
:allowed_param:
"""
- return self.request('GET', f'geo/id/{place_id}', *args, **kwargs)
+ return self.request('GET', f'geo/id/{place_id}', *args,
+ require_auth=True, **kwargs)
@payload('place', list=True)
def geo_search(self, *args, **kwargs):
'GET', 'geo/search', *args,
allowed_param=['lat', 'long', 'query', 'ip', 'granularity',
'accuracy', 'max_results', 'contained_within'],
- **kwargs
+ require_auth=True, **kwargs
)
@payload('json')