From: Harmon Date: Thu, 27 May 2021 15:51:56 +0000 (-0500) Subject: Update and improve documentation for API.chunked_upload_init X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd6d4b61cba169f58d64e7baa18bcb78feaa2a7d;p=tweepy.git Update and improve documentation for API.chunked_upload_init --- 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'}