Require id parameter for API.trends_place
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:12:35 +0000 (22:12 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:12:35 +0000 (22:12 -0600)
tweepy/api.py

index 9501227116e55c33825e3c059dfc220b4cb656e3..714ce0073be7350d18a8c65ec2b86214e178e845 100644 (file)
@@ -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
         )