From dd6d4b61cba169f58d64e7baa18bcb78feaa2a7d Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 10:51:56 -0500 Subject: [PATCH] Update and improve documentation for API.chunked_upload_init --- tweepy/api.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 7c615f0..e7e37c6 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3598,14 +3598,24 @@ class API: Use this endpoint to initiate a chunked file upload session. - :param total_bytes: The size of the media being uploaded in bytes. - :param media_type: The MIME type of the media being uploaded. - :param media_category: |media_category| - :param additional_owners: |additional_owners| + Parameters + ---------- + total_bytes + The size of the media being uploaded in bytes. + media_type + The MIME type of the media being uploaded. + media_category + |media_category| + additional_owners + |additional_owners| - :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-init + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-init """ headers = {'Content-Type': 'application/x-www-form-urlencoded'} -- 2.25.1