From c50f5405abf8161c88e13395c61b6b188540f6f9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:12:35 -0600 Subject: [PATCH] Require id parameter for API.trends_place --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 9501227..714ce00 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1115,11 +1115,11 @@ class API: return self.request('GET', 'trends/available', **kwargs) @payload('json') - def trends_place(self, *args, **kwargs): + def trends_place(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place """ return self.request( - 'GET', 'trends/place', *args, endpoint_parameters=( + 'GET', 'trends/place', id, *args, endpoint_parameters=( 'id', 'exclude' ), **kwargs ) -- 2.25.1