Pass endpoint parameters to API.request as kwargs in API.reverse_geocode
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 23:27:34 +0000 (17:27 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 23:27:34 +0000 (17:27 -0600)
tweepy/api.py

index 258ebe633e6f556b568239fdf1f2d941fe0afc91..97ec1054bad3dfe8c1674ca2ad3337321b7d4751 100644 (file)
@@ -1168,9 +1168,9 @@ class API:
         """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode
         """
         return self.request(
-            'GET', 'geo/reverse_geocode', lat, long, endpoint_parameters=(
+            'GET', 'geo/reverse_geocode', endpoint_parameters=(
                 'lat', 'long', 'accuracy', 'granularity', 'max_results'
-            ), **kwargs
+            ), lat=lat, long=long, **kwargs
         )
 
     @payload('place')