From: Harmon Date: Sat, 20 Feb 2021 01:09:29 +0000 (-0600) Subject: Add documentation for API.chunked_upload_append X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c06131bbe8a5e49bbfcb8cce28def46e05da7d9;p=tweepy.git Add documentation for API.chunked_upload_append --- diff --git a/docs/api.rst b/docs/api.rst index 7cde4ea..d2392fb 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1377,6 +1377,19 @@ Media methods :rtype: :class:`Media` object +.. method:: API.chunked_upload_append(media_id, media, segment_index) + + 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. + + .. method:: API.create_media_metadata(media_id, alt_text) This endpoint can be used to provide additional information about the