From 04494d364da74e7d598466773b9dcbd88c22039c Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 18:46:56 -0600 Subject: [PATCH] Add documentation for API.chunked_upload --- docs/api.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 542ae0a..5d12c10 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1349,6 +1349,21 @@ Media methods :rtype: :class:`Media` object +.. method:: API.chunked_upload(filename, [file], [file_type], \ + [media_category], [additional_owners]) + + Use this endpoint to upload images to Twitter. + This uses the chunked upload endpoint. + + :param filename: |filename| + :param file: |file| + :param file_type: The MIME type of the media being uploaded. + :param media_category: |media_category| + :param additional_owners: |additional_owners| + + :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