From 5bd2661eba83af7525c60be4b46bc5e99b5d8c0f Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 27 May 2021 10:47:41 -0500 Subject: [PATCH] Update and improve documentation for API.chunked_upload_append --- tweepy/api.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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', -- 2.25.1