From: Harmon Date: Fri, 18 Dec 2020 13:08:39 +0000 (-0600) Subject: Update allowed parameters for API.get_oembed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e88a2f74fa4e129a1c86c993220a9b1bae20e1f3;p=tweepy.git Update allowed parameters for API.get_oembed --- diff --git a/docs/api.rst b/docs/api.rst index da80dd0..fe57078 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -282,8 +282,9 @@ Status methods :rtype: :class:`Status` object -.. method:: API.get_oembed(id/url, [maxwidth], [hide_media], [omit_script], \ - [align], [related], [lang]) +.. method:: API.get_oembed(url, [maxwidth], [hide_media], [hide_thread], \ + [omit_script], [align], [related], [lang], \ + [theme], [link_color], [widget_type], [dnt]) Returns a single Tweet, specified by either a Tweet web URL or the Tweet ID, in an oEmbed-compatible format. The returned HTML snippet will be @@ -299,7 +300,6 @@ Status methods The Tweet fallback markup is meant to be cached on your servers for up to the suggested cache lifetime specified in the ``cache_age``. - :param id: |sid| :param url: The URL of the Tweet to be embedded :param maxwidth: The maximum width of a rendered Tweet in whole pixels. A supplied value under or over the allowed range will be @@ -315,6 +315,10 @@ Status methods ``hide_media`` parameters below. :param hide_media: When set to ``true``, ``"t"``, or ``1``, links in a Tweet are not expanded to photo, video, or link previews. + :param hide_thread: When set to ``true``, ``"t"``, or ``1``, a collapsed + version of the previous Tweet in a conversation thread + will not be displayed when the requested Tweet is in + reply to another Tweet. :param omit_script: When set to ``true``, ``"t"``, or ``1``, the ``