: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
------------
'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