From d50ce7d7fb37b7e441c7512f0154c4807eaae94c Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sun, 9 Jun 2013 11:53:17 -0400 Subject: [PATCH] Add account/update_profile_banner endpoint --- tweepy/api.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tweepy/api.py b/tweepy/api.py index 3e9fe2a..31ccc8d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -376,6 +376,17 @@ class API(object): require_auth = True )(self, post_data=post_data, headers=headers) + """ account/update_profile_banner """ + def update_profile_banner(self, filename, *args, **kargs): + headers, post_data = API._pack_image(filename, 700, form_field="banner") + bind_api( + path = '/account/update_profile_banner.json', + method = 'POST', + allowed_param = ['width', 'height', 'offset_left', 'offset_right'], + require_auth = True + )(self, post_data=post_data, headers=headers) + + """ account/update_profile """ update_profile = bind_api( path = '/account/update_profile.json', -- 2.25.1