added content_search, probably.
This commit is contained in:
pare
853ae97dcc
commit
7ebc48c50e
S'han modificat 1 arxius amb 11 adicions i 0 eliminacions
|
@ -333,6 +333,17 @@ class Mastodon:
|
|||
params = self.__generate_params(locals())
|
||||
return self.__api_request('GET', '/api/v1/accounts/search', params)
|
||||
|
||||
|
||||
def content_search(self, q, resolve = False):
|
||||
"""
|
||||
Fetch matching hashtags, accounts and statuses. Will search federated
|
||||
instances if resolve is True.
|
||||
|
||||
Returns a dict of lists.
|
||||
"""
|
||||
params = self.__generate_params(locals())
|
||||
return self.__api_request('GET', '/api/v1/search', params)
|
||||
|
||||
###
|
||||
# Reading data: Mutes and Blocks
|
||||
###
|
||||
|
|
Loading…
Referencia en una nova incidència