Rename API.trends_place to API.get_place_trends
authorHarmon <Harmon758@gmail.com>
Fri, 4 Jun 2021 12:11:15 +0000 (07:11 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 4 Jun 2021 12:11:15 +0000 (07:11 -0500)
docs/api.rst
tweepy/api.py

index 769b09a3f1d272bf2180b2973764d52475452723..de37c4a54841d1821aa517d00aefefb975859f2b 100644 (file)
     +------------------------------------------+--------------------------------------+
     | .. 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
 ===
index a845d59aec5024e8ba4dafce7c0b939b42fda172..04f1dc3278e8f1f65012183539e1ed82e6095b95 100644 (file)
@@ -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.