From 527d07552f535f2d54409abc81c06b497c58f30a Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 10:49:40 -0500 Subject: [PATCH] Update and improve documentation for API.chunked_upload_finalize --- tweepy/api.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index f96fecd..7c615f0 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3566,11 +3566,18 @@ class API: ``processing_info field``, it may also be necessary to check its status and wait for it to return success before proceeding to Tweet creation. - :param media_id: The ``media_id`` returned from the initialization. + Parameters + ---------- + media_id + The ``media_id`` returned from the initialization. - :rtype: :class:`Media` object + Returns + ------- + :class:`~tweepy.models.Media` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-finalize + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-finalize """ headers = {'Content-Type': 'application/x-www-form-urlencoded'} post_data = { -- 2.25.1