Commit cbcb62f2 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Remove deprecated trends methods.

parent a29d2d5d
......@@ -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
------------
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment