Require lat and long parameters for API.trends_closest
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:15:15 +0000 (22:15 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:15:15 +0000 (22:15 -0600)
tweepy/api.py

index adb9502bc504a365b76db465971ba0bfbbf9ff80..c4c4a69533afdf15943a10fce3488dc3b6fd2ce0 100644 (file)
@@ -1125,11 +1125,11 @@ class API:
         )
 
     @payload('json')
-    def trends_closest(self, *args, **kwargs):
+    def trends_closest(self, lat, long, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest
         """
         return self.request(
-            'GET', 'trends/closest', *args, endpoint_parameters=(
+            'GET', 'trends/closest', lat, long, *args, endpoint_parameters=(
                 'lat', 'long'
             ), **kwargs
         )