diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 19:10:33 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 19:10:33 +0200 |
commit | c1418e9f3f37319d5142e0fa058e2eab434c4e5d (patch) | |
tree | 9fbde2b214f6e7ed899667926c960200e21698d8 | |
parent | fb7496c68db5941528d0e32d821b58e255b2cb51 (diff) | |
download | mastodon.py-c1418e9f3f37319d5142e0fa058e2eab434c4e5d.tar.gz |
Removed trends endpoint
-rw-r--r-- | docs/index.rst | 5 | ||||
-rw-r--r-- | mastodon/Mastodon.py | 16 |
2 files changed, 0 insertions, 21 deletions
diff --git a/docs/index.rst b/docs/index.rst index 5226055..2b5ccf1 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -772,11 +772,6 @@ Reading data: Searching | |||
772 | .. automethod:: Mastodon.search | 772 | .. automethod:: Mastodon.search |
773 | .. automethod:: Mastodon.search_v2 | 773 | .. automethod:: Mastodon.search_v2 |
774 | 774 | ||
775 | Reading data: Trends | ||
776 | -------------------- | ||
777 | |||
778 | .. automethod:: Mastodon.trends | ||
779 | |||
780 | Reading data: Mutes and blocks | 775 | Reading data: Mutes and blocks |
781 | ------------------------------ | 776 | ------------------------------ |
782 | These functions allow you to get information about accounts that are | 777 | These functions allow you to get information about accounts that are |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index e8b900f..e6698f8 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -951,22 +951,6 @@ class Mastodon: | |||
951 | return self.__api_request('GET', '/api/v2/search', params) | 951 | return self.__api_request('GET', '/api/v2/search', params) |
952 | 952 | ||
953 | ### | 953 | ### |
954 | # Reading data: Trends | ||
955 | ### | ||
956 | @api_version("2.4.3", "2.4.3", __DICT_VERSION_HASHTAG) | ||
957 | def trends(self): | ||
958 | """ | ||
959 | Fetch trending-hashtag information, if the instance provides such information. | ||
960 | |||
961 | Does not require authentication. | ||
962 | |||
963 | Returns a list of `hashtag dicts`_, sorted by the instances trending algorithm, | ||
964 | descending. | ||
965 | |||
966 | """ | ||
967 | return self.__api_request('GET', '/api/v1/trends') | ||
968 | |||
969 | ### | ||
970 | # Reading data: Lists | 954 | # Reading data: Lists |
971 | ### | 955 | ### |
972 | @api_version("2.1.0", "2.1.0", __DICT_VERSION_LIST) | 956 | @api_version("2.1.0", "2.1.0", __DICT_VERSION_LIST) |