From: Harmon Date: Fri, 4 Jun 2021 12:11:15 +0000 (-0500) Subject: Rename API.trends_place to API.get_place_trends X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4912a7c33420099663015325a0b758926892eb8a;p=tweepy.git Rename API.trends_place to API.get_place_trends --- diff --git a/docs/api.rst b/docs/api.rst index 769b09a..de37c4a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -228,7 +228,7 @@ +------------------------------------------+--------------------------------------+ | .. centered:: |Get trends near a location|_ | +------------------------------------------+--------------------------------------+ - | `GET trends/place`_ | :meth:`API.trends_place` | + | `GET trends/place`_ | :meth:`API.get_place_trends` | +------------------------------------------+--------------------------------------+ | .. centered:: :ref:`Geo` | +------------------------------------------+--------------------------------------+ @@ -597,7 +597,7 @@ Get locations with trending topics Get trends near a location -------------------------- -.. automethod:: API.trends_place +.. automethod:: API.get_place_trends Geo === diff --git a/tweepy/api.py b/tweepy/api.py index a845d59..04f1dc3 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3706,8 +3706,8 @@ class API: # Get trends near a location @payload('json') - def trends_place(self, id, **kwargs): - """trends_place(id *, exclude) + def get_place_trends(self, id, **kwargs): + """get_place_trends(id *, exclude) Returns the top 50 trending topics for a specific WOEID, if trending information is available for it.