Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
d50ce7d7
Commit
d50ce7d7
authored
Jun 09, 2013
by
Aaron Hill
Browse files
Add account/update_profile_banner endpoint
parent
02a43b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
d50ce7d7
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment