From: Harmon Date: Fri, 4 Jun 2021 12:05:41 +0000 (-0500) Subject: Rename API.trends_available to API.available_trends X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=68b33d7ea70bb9c2f7efc384482b3eb6af0807fa;p=tweepy.git Rename API.trends_available to API.available_trends --- diff --git a/docs/api.rst b/docs/api.rst index b40fc0c..317cacb 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -222,7 +222,7 @@ +------------------------------------------+--------------------------------------+ | .. centered:: |Get locations with trending topics|_ | +------------------------------------------+--------------------------------------+ - | `GET trends/available`_ | :meth:`API.trends_available` | + | `GET trends/available`_ | :meth:`API.available_trends` | +------------------------------------------+--------------------------------------+ | `GET trends/closest`_ | :meth:`API.trends_closest` | +------------------------------------------+--------------------------------------+ @@ -590,7 +590,7 @@ Trends Get locations with trending topics ---------------------------------- -.. automethod:: API.trends_available +.. automethod:: API.available_trends .. automethod:: API.trends_closest diff --git a/tweepy/api.py b/tweepy/api.py index b3c9bde..1ceae90 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3642,8 +3642,8 @@ class API: # Get locations with trending topics @payload('json') - def trends_available(self, **kwargs): - """trends_available() + def available_trends(self, **kwargs): + """available_trends() Returns the locations that Twitter has trending topic information for. The response is an array of "locations" that encode the location's