From: Harmon Date: Thu, 27 May 2021 15:47:41 +0000 (-0500) Subject: Update and improve documentation for API.chunked_upload_append X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5bd2661eba83af7525c60be4b46bc5e99b5d8c0f;p=tweepy.git Update and improve documentation for API.chunked_upload_append --- diff --git a/tweepy/api.py b/tweepy/api.py index 652529d..f96fecd 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3531,14 +3531,20 @@ class API: Use this endpoint to upload a chunk (consecutive byte range) of the media file. - :param media_id: The ``media_id`` returned from the initialization. - :param media: The raw binary file content being uploaded. It must be <= - 5 MB. - :param segment_index: An ordered index of file chunk. It must be - between 0-999 inclusive. The first segment has index 0, second - segment has index 1, and so on. + Parameters + ---------- + media_id + The ``media_id`` returned from the initialization. + media + The raw binary file content being uploaded. It must be <= 5 MB. + segment_index + An ordered index of file chunk. It must be between 0-999 inclusive. + The first segment has index 0, second segment has index 1, and so + on. - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-append + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-append """ post_data = { 'command': 'APPEND',