From af0cc51b1f41a37d6b325596d0fa2c738a29efcf Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 10 Feb 2021 13:04:24 -0600 Subject: [PATCH] Require url parameter 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 c6ead3e..ebabe31 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -453,11 +453,11 @@ class API: ) @payload('json') - def get_oembed(self, *args, **kwargs): + def get_oembed(self, url, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed """ return self.request( - 'GET', 'statuses/oembed', *args, endpoint_parameters=( + 'GET', 'statuses/oembed', url, *args, endpoint_parameters=( 'url', 'maxwidth', 'hide_media', 'hide_thread', 'omit_script', 'align', 'related', 'lang', 'theme', 'link_color', 'widget_type', 'dnt' -- 2.25.1