Merge pull request #26 from phryk/master

added content_search, probably.
This commit is contained in:
Lorenz Diener 2017-04-10 10:29:55 +02:00 cometido por GitHub
commit 7db6b4c02e

Veure arxiu

@ -402,6 +402,17 @@ class Mastodon:
params = self.__generate_params(locals()) params = self.__generate_params(locals())
return self.__api_request('GET', '/api/v1/accounts/search', params) 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 # Reading data: Mutes and Blocks
### ###