From d13d8535862b12f8cd0b4ca60a4f3c4be6f3122f Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:06:03 -0600 Subject: [PATCH] Stop allowing positional arguments besides url for API.get_oembed --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.25.1