From: Harmon Date: Fri, 19 Feb 2021 04:12:35 +0000 (-0600) Subject: Require id parameter for API.trends_place X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c50f5405abf8161c88e13395c61b6b188540f6f9;p=tweepy.git Require id parameter for API.trends_place --- 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 )