From: Harmon Date: Thu, 27 May 2021 15:43:49 +0000 (-0500) Subject: Update and improve documentation for API.simple_upload X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=122173f44e12cde4d98484157089860c8dfec69d;p=tweepy.git Update and improve documentation for API.simple_upload --- diff --git a/tweepy/api.py b/tweepy/api.py index cd59e3b..ebfee16 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3411,14 +3411,24 @@ class API: Use this endpoint to upload media to Twitter. This does not use the chunked upload endpoints. - :param filename: |filename| - :param file: |file| - :param media_category: |media_category| - :param additional_owners: |additional_owners| + Parameters + ---------- + filename + |filename| + file + |file| + media_category + |media_category| + additional_owners + |additional_owners| - :rtype: :class:`Media` object + Returns + ------- + :class:`~tweepy.models.Media` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload """ with contextlib.ExitStack() as stack: if file is not None: