Add documentation for API.chunked_upload
authorHarmon <Harmon758@gmail.com>
Sat, 20 Feb 2021 00:46:56 +0000 (18:46 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 20 Feb 2021 00:46:56 +0000 (18:46 -0600)
docs/api.rst

index 542ae0ad0fe070faa75f6f539c04338986f3817d..5d12c106303d43bbdac85e99d2dcbb8441050d31 100644 (file)
@@ -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