From 9f74bd4d98db7dc614efeac61f9193a810bccf40 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 25 May 2021 06:09:54 -0500 Subject: [PATCH] Update and improve documentation for API.update_profile_image --- tweepy/api.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) 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)} -- 2.25.1