From 6c06131bbe8a5e49bbfcb8cce28def46e05da7d9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 19:09:29 -0600 Subject: [PATCH] Add documentation for API.chunked_upload_append --- docs/api.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.25.1