'exclude_replies', 'include_entities'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/home_timeline.json',
+ self, 'GET', '/statuses/home_timeline.json', *args,
allowed_param=['count', 'since_id', 'max_id', 'trim_user',
'exclude_replies', 'include_entities'],
require_auth=True, **kwargs
kwargs['map'] = kwargs.pop('map_')
return bind_api(
- self, 'GET', list_to_csv(id_), *args,
- path='/statuses/lookup.json',
+ self, 'GET', '/statuses/lookup.json', list_to_csv(id_), *args,
allowed_param=['id', 'include_entities', 'trim_user', 'map',
'include_ext_alt_text', 'include_card_uri'],
require_auth=True, **kwargs
'include_rts'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/user_timeline.json',
+ self, 'GET', '/statuses/user_timeline.json', *args,
allowed_param=['user_id', 'screen_name', 'since_id', 'count',
'max_id', 'trim_user', 'exclude_replies',
'include_rts'], **kwargs
:allowed_param: 'since_id', 'max_id', 'count'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/mentions_timeline.json',
+ self, 'GET', '/statuses/mentions_timeline.json', *args,
allowed_param=['since_id', 'max_id', 'count'],
require_auth=True, **kwargs
)
:allowed_param: 'since_id', 'max_id', 'count'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/retweets_of_me.json',
+ self, 'GET', '/statuses/retweets_of_me.json', *args,
allowed_param=['since_id', 'max_id', 'count'],
require_auth=True, **kwargs
)
'include_card_uri'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/show.json',
+ self, 'GET', '/statuses/show.json', *args,
allowed_param=['id', 'trim_user', 'include_my_retweet',
'include_entities', 'include_ext_alt_text',
'include_card_uri'], **kwargs
kwargs['media_ids'] = list_to_csv(kwargs['media_ids'])
return bind_api(
- self, 'POST', *args,
- path='/statuses/update.json',
+ self, 'POST', '/statuses/update.json', *args,
allowed_param=['status', 'in_reply_to_status_id',
'auto_populate_reply_metadata',
'exclude_reply_user_ids', 'attachment_url',
kwargs.update({'headers': headers, 'post_data': post_data})
return bind_api(
- self, 'POST', *args,
- path='/media/upload.json',
+ self, 'POST', '/media/upload.json', *args,
allowed_param=[],
require_auth=True,
upload_api=True, **kwargs
}
return bind_api(
- self, 'POST', *args,
- path='/media/metadata/create.json',
+ self, 'POST', '/media/metadata/create.json', *args,
allowed_param=[],
require_auth=True,
upload_api=True, **kwargs
kwargs.update({'headers': headers, 'post_data': post_data})
return bind_api(
- self, 'POST', *args,
- path='/statuses/update_with_media.json',
+ self, 'POST', '/statuses/update_with_media.json', *args,
allowed_param=['status', 'possibly_sensitive',
'in_reply_to_status_id',
'in_reply_to_status_id_str',
:allowed_param:
"""
return bind_api(
- self, 'POST', *args,
- path=f'/statuses/destroy/{status_id}.json',
+ self, 'POST', f'/statuses/destroy/{status_id}.json', *args,
require_auth=True, **kwargs
)
:allowed_param:
"""
return bind_api(
- self, 'POST', *args,
- path=f'/statuses/retweet/{status_id}.json',
+ self, 'POST', f'/statuses/retweet/{status_id}.json', *args,
require_auth=True, **kwargs
)
:allowed_param:
"""
return bind_api(
- self, 'POST', *args,
- path=f'/statuses/unretweet/{status_id}.json',
+ self, 'POST', f'/statuses/unretweet/{status_id}.json', *args,
require_auth=True, **kwargs
)
:allowed_param: 'count'
"""
return bind_api(
- self, 'GET', *args,
- path=f'/statuses/retweets/{status_id}.json',
+ self, 'GET', f'/statuses/retweets/{status_id}.json', *args,
allowed_param=['count'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'cursor', 'stringify_ids
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/retweeters/ids.json',
+ self, 'GET', '/statuses/retweeters/ids.json', *args,
allowed_param=['id', 'cursor', 'stringify_ids'], **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'GET', *args,
- path='/users/show.json',
+ self, 'GET', '/users/show.json', *args,
allowed_param=['id', 'user_id', 'screen_name'], **kwargs
)
'link_color', 'widget_type', 'dnt'
"""
return bind_api(
- self, 'GET', *args,
- path='/statuses/oembed.json',
+ self, 'GET', '/statuses/oembed.json', *args,
allowed_param=['url', 'maxwidth', 'hide_media', 'hide_thread',
'omit_script', 'align', 'related', 'lang', 'theme',
'link_color', 'widget_type', 'dnt'], **kwargs
'tweet_mode'
"""
return bind_api(
- self, 'POST', list_to_csv(user_ids), list_to_csv(screen_names),
- *args,
- path='/users/lookup.json',
+ self, 'POST', '/users/lookup.json', list_to_csv(user_ids),
+ list_to_csv(screen_names), *args,
allowed_param=['user_id', 'screen_name', 'include_entities',
'tweet_mode'], **kwargs
)
:allowed_param: 'q', 'count', 'page'
"""
return bind_api(
- self, 'GET', *args,
- path='/users/search.json',
+ self, 'GET', '/users/search.json', *args,
require_auth=True,
allowed_param=['q', 'count', 'page'], **kwargs
)
:allowed_param: 'id'
"""
return bind_api(
- self, 'GET', *args,
- path='/direct_messages/events/show.json',
+ self, 'GET', '/direct_messages/events/show.json', *args,
allowed_param=['id'],
require_auth=True, **kwargs
)
:allowed_param: 'count', 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/direct_messages/events/list.json',
+ self, 'GET', '/direct_messages/events/list.json', *args,
allowed_param=['count', 'cursor'],
require_auth=True, **kwargs
)
if ctas is not None:
message_data['ctas'] = ctas
return bind_api(
- self, 'POST',
- path='/direct_messages/events/new.json',
+ self, 'POST', '/direct_messages/events/new.json',
require_auth=True,
json_payload=json_payload, **kwargs
)
:allowed_param: 'id'
"""
return bind_api(
- self, 'DELETE', *args,
- path='/direct_messages/events/destroy.json',
+ self, 'DELETE', '/direct_messages/events/destroy.json', *args,
allowed_param=['id'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name', 'follow'
"""
return bind_api(
- self, 'POST', *args,
- path='/friendships/create.json',
+ self, 'POST', '/friendships/create.json', *args,
allowed_param=['id', 'user_id', 'screen_name', 'follow'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'POST', *args,
- path='/friendships/destroy.json',
+ self, 'POST', '/friendships/destroy.json', *args,
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True, **kwargs
)
'target_screen_name'
"""
return bind_api(
- self, 'GET', *args,
- path='/friendships/show.json',
+ self, 'GET', '/friendships/show.json', *args,
allowed_param=['source_id', 'source_screen_name',
'target_id', 'target_screen_name'], **kwargs
)
:allowed_param: 'user_id', 'screen_name'
"""
return bind_api(
- self, 'GET', list_to_csv(user_ids), list_to_csv(screen_names),
- path='/friendships/lookup.json',
+ self, 'GET', '/friendships/lookup.json', list_to_csv(user_ids),
+ list_to_csv(screen_names),
allowed_param=['user_id', 'screen_name'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/friends/ids.json',
+ self, 'GET', '/friends/ids.json', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor'], **kwargs
)
'skip_status', 'include_user_entities'
"""
return bind_api(
- self, 'GET', *args,
- path='/friends/list.json',
+ self, 'GET', '/friends/list.json', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities'], **kwargs
)
:allowed_param: 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/friendships/incoming.json',
+ self, 'GET', '/friendships/incoming.json', *args,
allowed_param=['cursor'], **kwargs
)
:allowed_param: 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/friendships/outgoing.json',
+ self, 'GET', '/friendships/outgoing.json', *args,
allowed_param=['cursor'], **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor', 'count'
"""
return bind_api(
- self, 'GET', *args,
- path='/followers/ids.json',
+ self, 'GET', '/followers/ids.json', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count'],
**kwargs
)
'skip_status', 'include_user_entities'
"""
return bind_api(
- self, 'GET', *args,
- path='/followers/list.json',
+ self, 'GET', '/followers/list.json', *args,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities'], **kwargs
)
def get_settings(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-settings """
return bind_api(
- self, 'GET', *args,
- path='/account/settings.json',
+ self, 'GET', '/account/settings.json', *args,
use_cache=False, **kwargs
)
'allow_contributor_request', 'lang'
"""
return bind_api(
- self, 'POST', *args,
- path='/account/settings.json',
+ self, 'POST', '/account/settings.json', *args,
allowed_param=['sleep_time_enabled', 'start_sleep_time',
'end_sleep_time', 'time_zone',
'trend_location_woeid',
kwargs['include_email'] = str(kwargs['include_email']).lower()
try:
return bind_api(
- self, 'GET',
- path='/account/verify_credentials.json',
+ self, 'GET', '/account/verify_credentials.json',
require_auth=True,
allowed_param=['include_entities', 'skip_status',
'include_email'], **kwargs
:allowed_param: 'resources'
"""
return bind_api(
- self, 'GET', *args,
- path='/application/rate_limit_status.json',
+ self, 'GET', '/application/rate_limit_status.json', *args,
allowed_param=['resources'],
use_cache=False, **kwargs
)
"""
headers, post_data = API._pack_image(filename, 700, f=file_)
return bind_api(
- self, 'POST', *args,
- path='/account/update_profile_image.json',
+ self, 'POST', '/account/update_profile_image.json', *args,
allowed_param=['include_entities', 'skip_status'],
require_auth=True,
post_data=post_data, headers=headers, **kwargs
headers, post_data = API._pack_image(filename, 700,
form_field='banner', f=f)
return bind_api(
- self, 'POST',
- path='/account/update_profile_banner.json',
+ self, 'POST', '/account/update_profile_banner.json',
allowed_param=['width', 'height', 'offset_left', 'offset_right'],
require_auth=True,
post_data=post_data, headers=headers
'profile_link_color'
"""
return bind_api(
- self, 'POST', *args,
- path='/account/update_profile.json',
+ self, 'POST', '/account/update_profile.json', *args,
allowed_param=['name', 'url', 'location', 'description',
'profile_link_color'],
require_auth=True, **kwargs
'since_id'
"""
return bind_api(
- self, 'GET', *args,
- path='/favorites/list.json',
+ self, 'GET', '/favorites/list.json', *args,
allowed_param=['screen_name', 'user_id', 'max_id', 'count',
'since_id'], **kwargs
)
:allowed_param: 'id'
"""
return bind_api(
- self, 'POST', *args,
- path='/favorites/create.json',
+ self, 'POST', '/favorites/create.json', *args,
allowed_param=['id'],
require_auth=True, **kwargs
)
:allowed_param: 'id'
"""
return bind_api(
- self, 'POST', *args,
- path='/favorites/destroy.json',
+ self, 'POST', '/favorites/destroy.json', *args,
allowed_param=['id'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'POST', *args,
- path='/blocks/create.json',
+ self, 'POST', '/blocks/create.json', *args,
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'POST', *args,
- path='/blocks/destroy.json',
+ self, 'POST', '/blocks/destroy.json', *args,
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True, **kwargs
)
:allowed_param: 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/mutes/users/ids.json',
+ self, 'GET', '/mutes/users/ids.json', *args,
allowed_param=['cursor'],
require_auth=True, **kwargs
)
:allowed_param: 'cursor', 'include_entities', 'skip_status'
"""
return bind_api(
- self, 'GET', *args,
- path='/mutes/users/list.json',
+ self, 'GET', '/mutes/users/list.json', *args,
allowed_param=['cursor', 'include_entities', 'skip_status'],
required_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'POST', *args,
- path='/mutes/users/create.json',
+ self, 'POST', '/mutes/users/create.json', *args,
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True, **kwargs
)
:allowed_param: 'id', 'user_id', 'screen_name'
"""
return bind_api(
- self, 'POST', *args,
- path='/mutes/users/destroy.json',
+ self, 'POST', '/mutes/users/destroy.json', *args,
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True, **kwargs
)
:allowed_param: 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/blocks/list.json',
+ self, 'GET', '/blocks/list.json', *args,
allowed_param=['cursor'],
require_auth=True, **kwargs
)
:allowed_param: 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/blocks/ids.json',
+ self, 'GET', '/blocks/ids.json', *args,
allowed_param=['cursor'],
require_auth=True, **kwargs
)
:allowed_param: 'user_id', 'screen_name', 'perform_block'
"""
return bind_api(
- self, 'POST', *args,
- path='/users/report_spam.json',
+ self, 'POST', '/users/report_spam.json', *args,
allowed_param=['user_id', 'screen_name', 'perform_block'],
require_auth=True, **kwargs
)
def saved_searches(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-list """
return bind_api(
- self, 'GET', *args,
- path='/saved_searches/list.json',
+ self, 'GET', '/saved_searches/list.json', *args,
require_auth=True, **kwargs
)
:allowed_param:
"""
return bind_api(
- self, 'GET', *args,
- path=f'/saved_searches/show/{saved_search_id}.json',
+ self, 'GET', f'/saved_searches/show/{saved_search_id}.json', *args,
require_auth=True, **kwargs
)
:allowed_param: 'query'
"""
return bind_api(
- self, 'POST', *args,
- path='/saved_searches/create.json',
+ self, 'POST', '/saved_searches/create.json', *args,
allowed_param=['query'],
require_auth=True, **kwargs
)
:allowed_param:
"""
return bind_api(
- self, 'POST', *args,
- path=f'/saved_searches/destroy/{saved_search_id}.json',
+ self, 'POST', f'/saved_searches/destroy/{saved_search_id}.json',
+ *args,
require_auth=True, **kwargs
)
:allowed_param: 'name', 'mode', 'description'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/create.json',
+ self, 'POST', '/lists/create.json', *args,
allowed_param=['name', 'mode', 'description'],
require_auth=True, **kwargs
)
:allowed_param: 'owner_screen_name', 'owner_id', 'list_id', 'slug'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/destroy.json',
+ self, 'POST', '/lists/destroy.json', *args,
allowed_param=['owner_screen_name', 'owner_id', 'list_id', 'slug'],
require_auth=True, **kwargs
)
'owner_screen_name', 'owner_id'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/update.json',
+ self, 'POST', '/lists/update.json', *args,
allowed_param=['list_id', 'slug', 'name', 'mode', 'description',
'owner_screen_name', 'owner_id'],
require_auth=True, **kwargs
:allowed_param: 'screen_name', 'user_id', 'reverse'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/list.json',
+ self, 'GET', '/lists/list.json', *args,
allowed_param=['screen_name', 'user_id', 'reverse'],
require_auth=True, **kwargs
)
'cursor', 'count'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/memberships.json',
+ self, 'GET', '/lists/memberships.json', *args,
allowed_param=['screen_name', 'user_id', 'filter_to_owned_lists',
'cursor', 'count'],
require_auth=True, **kwargs
:allowed_param: 'user_id', 'screen_name', 'count', 'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/ownerships.json',
+ self, 'GET', '/lists/ownerships.json', *args,
allowed_param=['user_id', 'screen_name', 'count', 'cursor'],
require_auth=True, **kwargs
)
:allowed_param: 'screen_name', 'user_id', 'cursor', 'count'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/subscriptions.json',
+ self, 'GET', '/lists/subscriptions.json', *args,
allowed_param=['screen_name', 'user_id', 'cursor', 'count'],
require_auth=True, **kwargs
)
'include_rts'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/statuses.json',
+ self, 'GET', '/lists/statuses.json', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'since_id', 'max_id', 'count', 'include_entities',
'include_rts'], **kwargs
:allowed_param: 'owner_screen_name', 'owner_id', 'slug', 'list_id'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/show.json',
+ self, 'GET', '/lists/show.json', *args,
allowed_param=['owner_screen_name', 'owner_id', 'slug', 'list_id'],
**kwargs
)
'owner_id', 'slug', 'list_id'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/members/create.json',
+ self, 'POST', '/lists/members/create.json', *args,
allowed_param=['screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'],
require_auth=True, **kwargs
'owner_id', 'slug', 'list_id'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/members/destroy.json',
+ self, 'POST', '/lists/members/destroy.json', *args,
allowed_param=['screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'],
require_auth=True, **kwargs
'owner_id', 'owner_screen_name'
"""
return bind_api(
- self, 'POST', list_to_csv(screen_name), list_to_csv(user_id), slug,
- list_id, owner_id, owner_screen_name,
- path='/lists/members/create_all.json',
+ self, 'POST', '/lists/members/create_all.json',
+ list_to_csv(screen_name), list_to_csv(user_id), slug, list_id,
+ owner_id, owner_screen_name,
allowed_param=['screen_name', 'user_id', 'slug', 'list_id',
'owner_id', 'owner_screen_name'],
require_auth=True, **kwargs
'owner_id', 'owner_screen_name'
"""
return bind_api(
- self, 'POST', list_to_csv(screen_name), list_to_csv(user_id), slug,
- list_id, owner_id, owner_screen_name,
- path='/lists/members/destroy_all.json',
+ self, 'POST', '/lists/members/destroy_all.json',
+ list_to_csv(screen_name), list_to_csv(user_id), slug, list_id,
+ owner_id, owner_screen_name,
allowed_param=['screen_name', 'user_id', 'slug', 'list_id',
'owner_id', 'owner_screen_name'],
require_auth=True, **kwargs
'cursor'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/members.json',
+ self, 'GET', '/lists/members.json', *args,
allowed_param=['owner_screen_name', 'slug', 'list_id', 'owner_id',
'cursor'], **kwargs
)
'owner_screen_name', 'owner_id'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/members/show.json',
+ self, 'GET', '/lists/members/show.json', *args,
allowed_param=['list_id', 'slug', 'user_id', 'screen_name',
'owner_screen_name', 'owner_id'], **kwargs
)
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/subscribers/create.json',
+ self, 'POST', '/lists/subscribers/create.json', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id'],
require_auth=True, **kwargs
)
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id'
"""
return bind_api(
- self, 'POST', *args,
- path='/lists/subscribers/destroy.json',
+ self, 'POST', '/lists/subscribers/destroy.json', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id'],
require_auth=True, **kwargs
)
'skip_status'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/subscribers.json',
+ self, 'GET', '/lists/subscribers.json', *args,
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'cursor', 'count', 'include_entities',
'skip_status'], **kwargs
'owner_id', 'list_id', 'user_id'
"""
return bind_api(
- self, 'GET', *args,
- path='/lists/subscribers/show.json',
+ self, 'GET', '/lists/subscribers/show.json', *args,
allowed_param=['owner_screen_name', 'slug', 'screen_name',
'owner_id', 'list_id', 'user_id'], **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 bind_api(
- self, 'GET', *args,
- path='/trends/available.json',
- **kwargs
- )
+ return bind_api(self, 'GET', '/trends/available.json', *args, **kwargs)
@payload('json')
def trends_place(self, *args, **kwargs):
:allowed_param: 'id', 'exclude'
"""
return bind_api(
- self, 'GET', *args,
- path='/trends/place.json',
+ self, 'GET', '/trends/place.json', *args,
allowed_param=['id', 'exclude'], **kwargs
)
:allowed_param: 'lat', 'long'
"""
return bind_api(
- self, 'GET', *args,
- path='/trends/closest.json',
+ self, 'GET', '/trends/closest.json', *args,
allowed_param=['lat', 'long'], **kwargs
)
'include_entities'
"""
return bind_api(
- self, 'GET', *args,
- path='/search/tweets.json',
+ self, 'GET', '/search/tweets.json', *args,
allowed_param=['q', 'lang', 'locale', 'since_id', 'geocode',
'max_id', 'until', 'result_type', 'count',
'include_entities'], **kwargs
'next'
"""
return bind_api(
- self, 'GET', *args,
- path=f'/tweets/search/30day/{environment_name}.json',
+ self, 'GET', f'/tweets/search/30day/{environment_name}.json',
+ *args,
allowed_param=['query', 'tag', 'fromDate', 'toDate', 'maxResults',
'next'],
require_auth=True, **kwargs
'next'
"""
return bind_api(
- self, 'GET', *args,
- path=f'/tweets/search/fullarchive/{environment_name}.json',
+ self, 'GET', f'/tweets/search/fullarchive/{environment_name}.json',
+ *args,
allowed_param=['query', 'tag', 'fromDate', 'toDate', 'maxResults',
'next'],
require_auth=True, **kwargs
'max_results'
"""
return bind_api(
- self, 'GET', *args,
- path='/geo/reverse_geocode.json',
+ self, 'GET', '/geo/reverse_geocode.json', *args,
allowed_param=['lat', 'long', 'accuracy', 'granularity',
'max_results'], **kwargs
)
:allowed_param:
"""
return bind_api(
- self, 'GET', *args,
- path=f'/geo/id/{place_id}.json',
- **kwargs
+ self, 'GET', f'/geo/id/{place_id}.json', *args, **kwargs
)
@payload('place', list=True)
"""
return bind_api(
- self, 'GET', *args,
- path='/geo/search.json',
+ self, 'GET', '/geo/search.json', *args,
allowed_param=['lat', 'long', 'query', 'ip', 'granularity',
'accuracy', 'max_results', 'contained_within'],
**kwargs
def supported_languages(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/developer-utilities/supported-languages/api-reference/get-help-languages """
return bind_api(
- self, 'GET', *args,
- path='/help/languages.json',
+ self, 'GET', '/help/languages.json', *args,
require_auth=True, **kwargs
)
def configuration(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/developer-utilities/configuration/api-reference/get-help-configuration """
return bind_api(
- self, 'GET', *args,
- path='/help/configuration.json',
+ self, 'GET', '/help/configuration.json', *args,
require_auth=True, **kwargs
)