allowed_param=['q', 'count', 'page']
)
- @property
- def suggested_users(self):
- """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions-slug
- :allowed_param:'slug', 'lang'
- """
- return bind_api(
- api=self,
- path='/users/suggestions/{slug}.json',
- payload_type='user', payload_list=True,
- require_auth=True,
- allowed_param=['slug', 'lang']
- )
-
- @property
- def suggested_categories(self):
- """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions
- :allowed_param:'lang'
- """
- return bind_api(
- api=self,
- path='/users/suggestions.json',
- payload_type='category', payload_list=True,
- allowed_param=['lang'],
- require_auth=True
- )
-
-- @property
- def suggested_users_tweets(self):
- """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-suggestions-slug-members
- :allowed_param:'slug'
- def direct_messages(self):
- """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-messages
- :allowed_param:'since_id', 'max_id', 'count', 'full_text'
-- """
-- return bind_api(
-- api=self,
- path='/users/suggestions/{slug}/members.json',
- payload_type='status', payload_list=True,
- allowed_param=['slug'],
- path='/direct_messages.json',
- payload_type='direct_message', payload_list=True,
- allowed_param=['since_id', 'max_id', 'count', 'full_text'],
-- require_auth=True
-- )
--
@property
def get_direct_message(self):
- """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-message
- :allowed_param:'id', 'full_text'
+ """ :reference: https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/get-event
+ :allowed_param:'id'
"""
return bind_api(
api=self,