Stop allowing positional arguments besides url for API.get_oembed
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:06:03 +0000 (13:06 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:06:03 +0000 (13:06 -0600)
tweepy/api.py

index ebabe31b9ae09c22213bd0a8ed6926494ded84ad..5979613dda192a1d691ba7c3401fc809385e7160 100644 (file)
@@ -453,11 +453,11 @@ class API:
         )
 
     @payload('json')
-    def get_oembed(self, url, *args, **kwargs):
+    def get_oembed(self, url, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed
         """
         return self.request(
-            'GET', 'statuses/oembed', url, *args, endpoint_parameters=(
+            'GET', 'statuses/oembed', url, endpoint_parameters=(
                 'url', 'maxwidth', 'hide_media', 'hide_thread', 'omit_script',
                 'align', 'related', 'lang', 'theme', 'link_color',
                 'widget_type', 'dnt'