From: Harmon Date: Wed, 10 Feb 2021 19:06:03 +0000 (-0600) Subject: Stop allowing positional arguments besides url for API.get_oembed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d13d8535862b12f8cd0b4ca60a4f3c4be6f3122f;p=tweepy.git Stop allowing positional arguments besides url for API.get_oembed --- diff --git a/tweepy/api.py b/tweepy/api.py index ebabe31..5979613 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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'