From 77cece18bdae13b95693093de1605a32d9a000fb Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 19:14:57 -0600 Subject: [PATCH] Add documentation for API.chunked_upload_finalize --- docs/api.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index d2392fb..1a0b3b1 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1390,6 +1390,18 @@ Media methods segment has index 1, and so on. +.. method:: API.chunked_upload_finalize(media_id) + + Use this endpoint after the entire media file is uploaded via appending. + If (and only if) the response contains a ``processing_info field``, it may + also be necessary to check its status and wait for it to return success + before proceeding to Tweet creation. + + :param media_id: The ``media_id`` returned from the initialization. + + :rtype: :class:`Media` object + + .. method:: API.create_media_metadata(media_id, alt_text) This endpoint can be used to provide additional information about the -- 2.25.1