Add API.remove_profile_banner
authorHarmon <Harmon758@gmail.com>
Fri, 9 Apr 2021 19:01:01 +0000 (14:01 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 9 Apr 2021 19:01:01 +0000 (14:01 -0500)
docs/api.rst
tweepy/api.py

index 6faa86966026f8efe14dd2dd66a1ddbeda71ea41..852ad1ea83bde6f8d83d362a29d96a97670c8f2a 100644 (file)
@@ -154,6 +154,8 @@ Manage account settings and profile
 
 .. automethod:: API.get_profile_banner
 
+.. automethod:: API.remove_profile_banner
+
 
 Direct Message Methods
 ----------------------
index 3e495eba8b116a1ff22501ae0e9c8300e3f98e1d..a12c5102c151f7a82ab6d93500483cd3474e2247 100644 (file)
@@ -1828,6 +1828,15 @@ class API:
             ), **kwargs
         )
 
+    def remove_profile_banner(self, **kwargs):
+        """remove_profile_banner()
+
+        Removes the uploaded profile banner for the authenticating user.
+
+        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-account-remove_profile_banner
+        """
+        return self.request('POST', 'account/remove_profile_banner', **kwargs)
+
     def media_upload(self, filename, *, file=None, chunked=False,
                      media_category=None, additional_owners=None, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/overview