From: Harmon Date: Fri, 19 Feb 2021 04:15:15 +0000 (-0600) Subject: Require lat and long parameters for API.trends_closest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=75b9616d3206967b71902e491d662b6eea5d6fe2;p=tweepy.git Require lat and long parameters for API.trends_closest --- diff --git a/tweepy/api.py b/tweepy/api.py index adb9502..c4c4a69 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 )