diff options
author | phryk <[email protected]> | 2017-04-07 15:12:24 +0200 |
---|---|---|
committer | phryk <[email protected]> | 2017-04-07 15:12:24 +0200 |
commit | 7ebc48c50e4b5dc6e7e32be1fca3096a2bc71a1c (patch) | |
tree | fecd989a48ee5fbf1ff4bcedc90a235e1132cde3 | |
parent | 853ae97dccc91988874ae229e9977c8f41a02e44 (diff) | |
download | mastodon.py-7ebc48c50e4b5dc6e7e32be1fca3096a2bc71a1c.tar.gz |
added content_search, probably.
-rw-r--r-- | mastodon/Mastodon.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 9967bdb..48296e5 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -332,6 +332,17 @@ class Mastodon: | |||
332 | """ | 332 | """ |
333 | params = self.__generate_params(locals()) | 333 | params = self.__generate_params(locals()) |
334 | return self.__api_request('GET', '/api/v1/accounts/search', params) | 334 | return self.__api_request('GET', '/api/v1/accounts/search', params) |
335 | |||
336 | |||
337 | def content_search(self, q, resolve = False): | ||
338 | """ | ||
339 | Fetch matching hashtags, accounts and statuses. Will search federated | ||
340 | instances if resolve is True. | ||
341 | |||
342 | Returns a dict of lists. | ||
343 | """ | ||
344 | params = self.__generate_params(locals()) | ||
345 | return self.__api_request('GET', '/api/v1/search', params) | ||
335 | 346 | ||
336 | ### | 347 | ### |
337 | # Reading data: Mutes and Blocks | 348 | # Reading data: Mutes and Blocks |