Skip to content

Commit

Permalink
Rename API.trends_place to API.get_place_trends
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jun 4, 2021
1 parent 2e18162 commit 4912a7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Expand Up @@ -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` |
+------------------------------------------+--------------------------------------+
Expand Down Expand Up @@ -597,7 +597,7 @@ Get locations with trending topics
Get trends near a location
--------------------------

.. automethod:: API.trends_place
.. automethod:: API.get_place_trends

Geo
===
Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -3706,8 +3706,8 @@ def closest_trends(self, lat, long, **kwargs):
# 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.
Expand Down

0 comments on commit 4912a7c

Please sign in to comment.