From: Harmon Date: Tue, 25 May 2021 11:09:54 +0000 (-0500) Subject: Update and improve documentation for API.update_profile_image X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9f74bd4d98db7dc614efeac61f9193a810bccf40;p=tweepy.git Update and improve documentation for API.update_profile_image --- diff --git a/tweepy/api.py b/tweepy/api.py index daf1a5a..b594c3b 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2800,14 +2800,24 @@ class API: Update the authenticating user's profile image. Valid formats: GIF, JPG, or PNG - :param filename: |filename| - :param file: |file| - :param include_entities: |include_entities| - :param skip_status: |skip_status| + Parameters + ---------- + filename + |filename| + file + |file| + include_entities + |include_entities| + skip_status + |skip_status| - :rtype: :class:`User` object + Returns + ------- + :class:`~tweepy.models.User` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image """ if file is not None: files = {'image': (filename, file)}