From: Harmon Date: Sat, 20 Feb 2021 00:46:56 +0000 (-0600) Subject: Add documentation for API.chunked_upload X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=04494d364da74e7d598466773b9dcbd88c22039c;p=tweepy.git Add documentation for API.chunked_upload --- 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