f' It is currently a {type(self.parser)}.'
)
- @property
- def home_timeline(self):
+ @pagination(mode='id')
+ def home_timeline(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline
:allowed_param: 'count', 'since_id', 'max_id', 'trim_user',
'exclude_replies', 'include_entities'
allowed_param=['count', 'since_id', 'max_id', 'trim_user',
'exclude_replies', 'include_entities'],
require_auth=True
- )
+ )(*args, **kwargs)
def statuses_lookup(self, id_, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup
require_auth=True
)(list_to_csv(id_), *args, **kwargs)
- @property
- def user_timeline(self):
+ @pagination(mode='id')
+ def user_timeline(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline
:allowed_param: 'user_id', 'screen_name', 'since_id', 'count',
'max_id', 'trim_user', 'exclude_replies',
allowed_param=['user_id', 'screen_name', 'since_id', 'count',
'max_id', 'trim_user', 'exclude_replies',
'include_rts']
- )
+ )(*args, **kwargs)
- @property
- def mentions_timeline(self):
+ @pagination(mode='id')
+ def mentions_timeline(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-mentions_timeline
:allowed_param: 'since_id', 'max_id', 'count'
"""
payload_type='status', payload_list=True,
allowed_param=['since_id', 'max_id', 'count'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def related_results(self):
+ def related_results(self, *args, **kwargs):
""" :reference: https://dev.twitter.com/docs/api/1.1/get/related_results/show/%3id.format
:allowed_param: 'id'
"""
payload_type='relation', payload_list=True,
allowed_param=['id'],
require_auth=False
- )
+ )(*args, **kwargs)
- @property
- def retweets_of_me(self):
+ @pagination(mode='id')
+ def retweets_of_me(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets_of_me
:allowed_param: 'since_id', 'max_id', 'count'
"""
payload_type='status', payload_list=True,
allowed_param=['since_id', 'max_id', 'count'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def get_status(self):
+ def get_status(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id
:allowed_param: 'id', 'trim_user', 'include_my_retweet',
'include_entities', 'include_ext_alt_text',
allowed_param=['id', 'trim_user', 'include_my_retweet',
'include_entities', 'include_ext_alt_text',
'include_card_uri']
- )
+ )(*args, **kwargs)
def update_status(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update
require_auth=True
)(*args, **kwargs)
- @property
- def destroy_status(self):
+ def destroy_status(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id
:allowed_param: 'id'
"""
payload_type='status',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def retweet(self):
+ def retweet(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id
:allowed_param: 'id'
"""
payload_type='status',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def unretweet(self):
+ def unretweet(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
:allowed_param: 'id'
"""
payload_type='status',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def retweets(self):
+ def retweets(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id
:allowed_param: 'id', 'count'
"""
payload_type='status', payload_list=True,
allowed_param=['id', 'count'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def retweeters(self):
+ @pagination(mode='cursor')
+ def retweeters(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids
:allowed_param: 'id', 'cursor', 'stringify_ids
"""
path='/statuses/retweeters/ids.json',
payload_type='ids',
allowed_param=['id', 'cursor', 'stringify_ids']
- )
+ )(*args, **kwargs)
- @property
- def get_user(self):
+ def get_user(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show
:allowed_param: 'id', 'user_id', 'screen_name'
"""
path='/users/show.json',
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name']
- )
+ )(*args, **kwargs)
- @property
- def get_oembed(self):
+ def get_oembed(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed
:allowed_param: 'url', 'maxwidth', 'hide_media', 'hide_thread',
'omit_script', 'align', 'related', 'lang', 'theme',
allowed_param=['url', 'maxwidth', 'hide_media', 'hide_thread',
'omit_script', 'align', 'related', 'lang', 'theme',
'link_color', 'widget_type', 'dnt']
- )
+ )(*args, **kwargs)
def lookup_users(self, user_ids=None, screen_names=None, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup
""" Get the authenticated user """
return self.get_user(screen_name=self.auth.get_username())
- @property
- def search_users(self):
+ @pagination(mode='page')
+ def search_users(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-search
:allowed_param: 'q', 'count', 'page'
"""
payload_type='user', payload_list=True,
require_auth=True,
allowed_param=['q', 'count', 'page']
- )
+ )(*args, **kwargs)
- @property
- def get_direct_message(self):
+ def get_direct_message(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-event
:allowed_param: 'id'
"""
payload_type='direct_message',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def list_direct_messages(self):
+ @pagination(mode='dm_cursor')
+ def list_direct_messages(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/list-events
:allowed_param: 'count', 'cursor'
"""
payload_type='direct_message', payload_list=True,
allowed_param=['count', 'cursor'],
require_auth=True
- )
+ )(*args, **kwargs)
def send_direct_message(self, recipient_id, text, quick_reply_options=None,
attachment_type=None, attachment_media_id=None,
require_auth=True
)(json_payload=json_payload)
- @property
- def destroy_direct_message(self):
+ def destroy_direct_message(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/delete-message-event
:allowed_param: 'id'
"""
method='DELETE',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def create_friendship(self):
+ def create_friendship(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-create
:allowed_param: 'id', 'user_id', 'screen_name', 'follow'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name', 'follow'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_friendship(self):
+ def destroy_friendship(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/post-friendships-destroy
:allowed_param: 'id', 'user_id', 'screen_name'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def show_friendship(self):
+ def show_friendship(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show
:allowed_param: 'source_id', 'source_screen_name', 'target_id',
'target_screen_name'
payload_type='friendship',
allowed_param=['source_id', 'source_screen_name',
'target_id', 'target_screen_name']
- )
+ )(*args, **kwargs)
def lookup_friendships(self, user_ids=None, screen_names=None):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-lookup
require_auth=True
)(list_to_csv(user_ids), list_to_csv(screen_names))
- @property
- def friends_ids(self):
+ @pagination(mode='cursor')
+ def friends_ids(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor'
"""
path='/friends/ids.json',
payload_type='ids',
allowed_param=['id', 'user_id', 'screen_name', 'cursor']
- )
+ )(*args, **kwargs)
- @property
- def friends(self):
+ @pagination(mode='cursor')
+ def friends(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-list
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities'
payload_type='user', payload_list=True,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities']
- )
+ )(*args, **kwargs)
- @property
- def friendships_incoming(self):
+ @pagination(mode='cursor')
+ def friendships_incoming(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-incoming
:allowed_param: 'cursor'
"""
path='/friendships/incoming.json',
payload_type='ids',
allowed_param=['cursor']
- )
+ )(*args, **kwargs)
- @property
- def friendships_outgoing(self):
+ @pagination(mode='cursor')
+ def friendships_outgoing(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-outgoing
:allowed_param: 'cursor'
"""
path='/friendships/outgoing.json',
payload_type='ids',
allowed_param=['cursor']
- )
+ )(*args, **kwargs)
- @property
- def followers_ids(self):
+ @pagination(mode='cursor')
+ def followers_ids(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor', 'count'
"""
path='/followers/ids.json',
payload_type='ids',
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count']
- )
+ )(*args, **kwargs)
- @property
- def followers(self):
+ @pagination(mode='cursor')
+ def followers(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-list
:allowed_param: 'id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities'
payload_type='user', payload_list=True,
allowed_param=['id', 'user_id', 'screen_name', 'cursor', 'count',
'skip_status', 'include_user_entities']
- )
+ )(*args, **kwargs)
- @property
- def get_settings(self):
+ 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(
api=self,
path='/account/settings.json',
payload_type='json',
use_cache=False
- )
+ )(*args, **kwargs)
- @property
- def set_settings(self):
+ def set_settings(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-settings
:allowed_param: 'sleep_time_enabled', 'start_sleep_time',
'end_sleep_time', 'time_zone',
'trend_location_woeid',
'allow_contributor_request', 'lang'],
use_cache=False
- )
+ )(*args, **kwargs)
def verify_credentials(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-verify_credentials
return False
raise
- @property
- def rate_limit_status(self):
+ def rate_limit_status(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status
:allowed_param: 'resources'
"""
payload_type='json',
allowed_param=['resources'],
use_cache=False
- )
+ )(*args, **kwargs)
def update_profile_image(self, filename, file_=None):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
require_auth=True
)(post_data=post_data, headers=headers)
- @property
- def update_profile(self):
+ def update_profile(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile
:allowed_param: 'name', 'url', 'location', 'description',
'profile_link_color'
allowed_param=['name', 'url', 'location', 'description',
'profile_link_color'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def favorites(self):
+ @pagination(mode='id')
+ def favorites(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list
:allowed_param: 'screen_name', 'user_id', 'max_id', 'count',
'since_id', 'max_id'
payload_type='status', payload_list=True,
allowed_param=['screen_name', 'user_id', 'max_id', 'count',
'since_id', 'max_id']
- )
+ )(*args, **kwargs)
- @property
- def create_favorite(self):
+ def create_favorite(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-create
:allowed_param: 'id'
"""
payload_type='status',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_favorite(self):
+ def destroy_favorite(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy
:allowed_param: 'id'
"""
payload_type='status',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def create_block(self):
+ def create_block(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-blocks-create
:allowed_param: 'id', 'user_id', 'screen_name'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_block(self):
+ def destroy_block(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-blocks-destroy
:allowed_param: 'id', 'user_id', 'screen_name'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def mutes_ids(self):
+ @pagination(mode='cursor')
+ def mutes_ids(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-ids
:allowed_param: 'cursor'
"""
payload_type='ids',
allowed_param=['cursor'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def mutes(self):
+ @pagination(mode='cursor')
+ def mutes(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-mutes-users-list
:allowed_param: 'cursor', 'include_entities', 'skip_status'
"""
payload_type='user', payload_list=True,
allowed_param=['cursor', 'include_entities', 'skip_status'],
required_auth=True
- )
+ )(*args, **kwargs)
- @property
- def create_mute(self):
+ def create_mute(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-create
:allowed_param: 'id', 'user_id', 'screen_name'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_mute(self):
+ def destroy_mute(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-destroy
:allowed_param: 'id', 'user_id', 'screen_name'
"""
payload_type='user',
allowed_param=['id', 'user_id', 'screen_name'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def blocks(self):
+ @pagination(mode='cursor')
+ def blocks(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list
:allowed_param: 'cursor'
"""
payload_type='user', payload_list=True,
allowed_param=['cursor'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def blocks_ids(self):
+ @pagination(mode='cursor')
+ def blocks_ids(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-ids
:allowed_param: 'cursor'
"""
payload_type='ids',
allowed_param=['cursor'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def report_spam(self):
+ def report_spam(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/post-users-report_spam
:allowed_param: 'user_id', 'screen_name', 'perform_block'
"""
payload_type='user',
allowed_param=['user_id', 'screen_name', 'perform_block'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def saved_searches(self):
+ 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(
api=self,
path='/saved_searches/list.json',
payload_type='saved_search', payload_list=True,
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def get_saved_search(self):
+ def get_saved_search(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id
:allowed_param: 'id'
"""
payload_type='saved_search',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def create_saved_search(self):
+ def create_saved_search(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create
:allowed_param: 'query'
"""
payload_type='saved_search',
allowed_param=['query'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_saved_search(self):
+ def destroy_saved_search(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id
:allowed_param: 'id'
"""
payload_type='saved_search',
allowed_param=['id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def create_list(self):
+ def create_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-create
:allowed_param: 'name', 'mode', 'description'
"""
payload_type='list',
allowed_param=['name', 'mode', 'description'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def destroy_list(self):
+ def destroy_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy
:allowed_param: 'owner_screen_name', 'owner_id', 'list_id', 'slug'
"""
payload_type='list',
allowed_param=['owner_screen_name', 'owner_id', 'list_id', 'slug'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def update_list(self):
+ def update_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-update
:allowed_param: 'list_id', 'slug', 'name', 'mode', 'description',
'owner_screen_name', 'owner_id'
allowed_param=['list_id', 'slug', 'name', 'mode', 'description',
'owner_screen_name', 'owner_id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def lists_all(self):
+ def lists_all(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-list
:allowed_param: 'screen_name', 'user_id', 'reverse'
"""
payload_type='list', payload_list=True,
allowed_param=['screen_name', 'user_id', 'reverse'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def lists_memberships(self):
+ @pagination(mode='cursor')
+ def lists_memberships(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-memberships
:allowed_param: 'screen_name', 'user_id', 'filter_to_owned_lists',
'cursor', 'count'
allowed_param=['screen_name', 'user_id', 'filter_to_owned_lists',
'cursor', 'count'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def lists_ownerships(self):
+ @pagination(mode='cursor')
+ def lists_ownerships(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-ownerships
:allowed_param: 'user_id', 'screen_name', 'count', 'cursor'
"""
payload_type='list', payload_list=True,
allowed_param=['user_id', 'screen_name', 'count', 'cursor'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def lists_subscriptions(self):
+ @pagination(mode='cursor')
+ def lists_subscriptions(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions
:allowed_param: 'screen_name', 'user_id', 'cursor', 'count'
"""
payload_type='list', payload_list=True,
allowed_param=['screen_name', 'user_id', 'cursor', 'count'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def list_timeline(self):
+ @pagination(mode='id')
+ def list_timeline(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-statuses
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id',
'since_id', 'max_id', 'count', 'include_entities',
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'since_id', 'max_id', 'count', 'include_entities',
'include_rts']
- )
+ )(*args, **kwargs)
- @property
- def get_list(self):
+ def get_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-show
:allowed_param: 'owner_screen_name', 'owner_id', 'slug', 'list_id'
"""
path='/lists/show.json',
payload_type='list',
allowed_param=['owner_screen_name', 'owner_id', 'slug', 'list_id']
- )
+ )(*args, **kwargs)
- @property
- def add_list_member(self):
+ def add_list_member(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-create
:allowed_param: 'screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'
allowed_param=['screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def remove_list_member(self):
+ def remove_list_member(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy
:allowed_param: 'screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'
allowed_param=['screen_name', 'user_id', 'owner_screen_name',
'owner_id', 'slug', 'list_id'],
require_auth=True
- )
+ )(*args, **kwargs)
def add_list_members(self, screen_name=None, user_id=None, slug=None,
list_id=None, owner_id=None, owner_screen_name=None):
)(list_to_csv(screen_name), list_to_csv(user_id), slug, list_id,
owner_id, owner_screen_name)
- @property
- def list_members(self):
+ @pagination(mode='cursor')
+ def list_members(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members
:allowed_param: 'owner_screen_name', 'slug', 'list_id', 'owner_id',
'cursor'
payload_type='user', payload_list=True,
allowed_param=['owner_screen_name', 'slug', 'list_id', 'owner_id',
'cursor']
- )
+ )(*args, **kwargs)
- @property
- def show_list_member(self):
+ def show_list_member(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-members-show
:allowed_param: 'list_id', 'slug', 'user_id', 'screen_name',
'owner_screen_name', 'owner_id'
payload_type='user',
allowed_param=['list_id', 'slug', 'user_id', 'screen_name',
'owner_screen_name', 'owner_id']
- )
+ )(*args, **kwargs)
- @property
- def subscribe_list(self):
+ def subscribe_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-create
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id'
"""
payload_type='list',
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def unsubscribe_list(self):
+ def unsubscribe_list(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-subscribers-destroy
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id'
"""
payload_type='list',
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id'],
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def list_subscribers(self):
+ @pagination(mode='cursor')
+ def list_subscribers(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers
:allowed_param: 'owner_screen_name', 'slug', 'owner_id', 'list_id',
'cursor', 'count', 'include_entities',
allowed_param=['owner_screen_name', 'slug', 'owner_id', 'list_id',
'cursor', 'count', 'include_entities',
'skip_status']
- )
+ )(*args, **kwargs)
- @property
- def show_list_subscriber(self):
+ def show_list_subscriber(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers-show
:allowed_param: 'owner_screen_name', 'slug', 'screen_name',
'owner_id', 'list_id', 'user_id'
payload_type='user',
allowed_param=['owner_screen_name', 'slug', 'screen_name',
'owner_id', 'list_id', 'user_id']
- )
+ )(*args, **kwargs)
- @property
- def trends_available(self):
+ 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(
api=self,
path='/trends/available.json',
payload_type='json'
- )
+ )(*args, **kwargs)
- @property
- def trends_place(self):
+ def trends_place(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place
:allowed_param: 'id', 'exclude'
"""
path='/trends/place.json',
payload_type='json',
allowed_param=['id', 'exclude']
- )
+ )(*args, **kwargs)
- @property
- def trends_closest(self):
+ def trends_closest(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
:allowed_param: 'lat', 'long'
"""
path='/trends/closest.json',
payload_type='json',
allowed_param=['lat', 'long']
- )
+ )(*args, **kwargs)
- @property
- def search(self):
+ @pagination(mode='id')
+ def search(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets
:allowed_param: 'q', 'lang', 'locale', 'since_id', 'geocode',
'max_id', 'until', 'result_type', 'count',
allowed_param=['q', 'lang', 'locale', 'since_id', 'geocode',
'max_id', 'until', 'result_type', 'count',
'include_entities']
- )
+ )(*args, **kwargs)
@pagination(mode='next')
def search_30_day(self, environment_name, *args, **kwargs):
require_auth=True
)(*args, **kwargs)
- @property
- def reverse_geocode(self):
+ def reverse_geocode(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode
:allowed_param: 'lat', 'long', 'accuracy', 'granularity',
'max_results'
payload_type='place', payload_list=True,
allowed_param=['lat', 'long', 'accuracy', 'granularity',
'max_results']
- )
+ )(*args, **kwargs)
- @property
- def geo_id(self):
+ def geo_id(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/geo/place-information/api-reference/get-geo-id-place_id
:allowed_param: 'id'
"""
path='/geo/id/{id}.json',
payload_type='place',
allowed_param=['id']
- )
+ )(*args, **kwargs)
- @property
- def geo_search(self):
+ def geo_search(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-search
:allowed_param: 'lat', 'long', 'query', 'ip', 'granularity',
'accuracy', 'max_results', 'contained_within'
payload_type='place', payload_list=True,
allowed_param=['lat', 'long', 'query', 'ip', 'granularity',
'accuracy', 'max_results', 'contained_within']
- )
+ )(*args, **kwargs)
- @property
- def supported_languages(self):
+ 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(
api=self,
path='/help/languages.json',
payload_type='json',
require_auth=True
- )
+ )(*args, **kwargs)
- @property
- def configuration(self):
+ def configuration(self, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/developer-utilities/configuration/api-reference/get-help-configuration """
return bind_api(
api=self,
path='/help/configuration.json',
payload_type='json',
require_auth=True
- )
+ )(*args, **kwargs)
""" Internal use only """