Skip to content

Commit

Permalink
Add API.remove_profile_banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Apr 9, 2021
1 parent 58ac8bb commit f0e53c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Manage account settings and profile

.. automethod:: API.get_profile_banner

.. automethod:: API.remove_profile_banner


Direct Message Methods
----------------------
Expand Down
9 changes: 9 additions & 0 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,15 @@ def get_profile_banner(self, **kwargs):
), **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
Expand Down

0 comments on commit f0e53c6

Please sign in to comment.