From: Joshua Roesslein Date: Mon, 1 Dec 2014 20:54:51 +0000 (-0600) Subject: Remove deprecated trends methods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cbcb62f251ff64626d940cb3d29fc5ea76494f5a;p=tweepy.git Remove deprecated trends methods. --- diff --git a/docs/api.rst b/docs/api.rst index 8b096bb..350722b 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -540,43 +540,6 @@ Help Methods :rtype: list of :class:`SearchResult` objects -.. method:: API.trends() - - Returns the top ten topics that are currently trending on Twitter. The - response includes the time of the request, the name of each trend, and - the url to the Twitter Search results page for that topic. - - :rtype: :class:`JSON` object - - -.. method:: API.trends_current([exclude]) - - Returns the current top 10 trending topics on Twitter. The response - includes the time of the request, the name of each trending topic, and - query used on Twitter Search results page for that topic. - - :param exclude: |exclude| - :rtype: :class:`JSON` object - - -.. method:: API.trends_daily([date], [exclude]) - - Returns the top 20 trending topics for each hour in a given day. - - :param date: |date| - :param exclude: |exclude| - :rtype: :class:`JSON` object - - -.. method:: API.trends_weekly([date], [exclude]) - - Returns the top 30 trending topics for each day in a given week. - - :param date: |date| - :param exclude: |exclude| - :rtype: :class:`JSON` object - - List Methods ------------ diff --git a/tweepy/api.py b/tweepy/api.py index 5310872..00e7d2c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1163,30 +1163,6 @@ class API(object): 'to', 'source'] ) - @property - def trends_daily(self): - """ :reference: https://dev.twitter.com/docs/api/1.1/get/trends/daily - :allowed_param:'date', 'exclude' - """ - return bind_api( - api=self, - path='/trends/daily.json', - payload_type='json', - allowed_param=['date', 'exclude'] - ) - - @property - def trends_weekly(self): - """ :reference: https://dev.twitter.com/docs/api/1.1/get/trends/weekly - :allowed_param:'date', 'exclude' - """ - return bind_api( - api=self, - path='/trends/weekly.json', - payload_type='json', - allowed_param=['date', 'exclude'] - ) - @property def reverse_geocode(self): """ :reference: https://dev.twitter.com/rest/reference/get/geo/reverse_geocode