From 75b9616d3206967b71902e491d662b6eea5d6fe2 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:15:15 -0600 Subject: [PATCH] Require lat and long parameters for API.trends_closest --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.25.1