From c1418e9f3f37319d5142e0fa058e2eab434c4e5d Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 27 Apr 2019 19:10:33 +0200 Subject: [PATCH] Removed trends endpoint --- docs/index.rst | 5 ----- mastodon/Mastodon.py | 16 ---------------- 2 files changed, 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 .. automethod:: Mastodon.search .. automethod:: Mastodon.search_v2 -Reading data: Trends --------------------- - -.. automethod:: Mastodon.trends - Reading data: Mutes and blocks ------------------------------ 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 @@ -950,22 +950,6 @@ class Mastodon: params = self.__generate_params(locals()) return self.__api_request('GET', '/api/v2/search', params) - ### - # Reading data: Trends - ### - @api_version("2.4.3", "2.4.3", __DICT_VERSION_HASHTAG) - def trends(self): - """ - Fetch trending-hashtag information, if the instance provides such information. - - Does not require authentication. - - Returns a list of `hashtag dicts`_, sorted by the instances trending algorithm, - descending. - - """ - return self.__api_request('GET', '/api/v1/trends') - ### # Reading data: Lists ###