From 1aaf0a19f05662a3643cb40537da788960552234 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 10:40:21 -0500 Subject: [PATCH] Update and improve documentation for API.create_media_metadata --- tweepy/api.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 30e25a2..bac2fd0 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3326,10 +3326,16 @@ class API: images and GIFs. Call this endpoint to attach additional metadata such as image alt text. - :param media_id: The ID of the media to add alt text to. - :param alt_text: The alt text to add to the image. + Parameters + ---------- + media_id + The ID of the media to add alt text to. + alt_text + The alt text to add to the image. - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-metadata-create + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-metadata-create """ json_payload = { 'media_id': media_id, -- 2.25.1