From: Harmon Date: Fri, 19 Feb 2021 23:27:34 +0000 (-0600) Subject: Pass endpoint parameters to API.request as kwargs in API.reverse_geocode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b6bf370c0d66d24802068c446c6a4a98dd61b46d;p=tweepy.git Pass endpoint parameters to API.request as kwargs in API.reverse_geocode --- diff --git a/tweepy/api.py b/tweepy/api.py index 258ebe6..97ec105 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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')