added content_search, probably.

This commit is contained in:
phryk 2017-04-07 15:12:24 +02:00
pare 853ae97dcc
commit 7ebc48c50e

Veure arxiu

@ -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
###