Uploading profile image and profile background image, update setup required packages, removed some funcs.
* You can now update user profile image or user profile background image thanks to the Python requests library. * Updated setup to include 'requests' as a required package * Changed to beginning hashbang to use the users environment python version * try/except for parse_qsl, removed try/excepts where it used cgi.parse_qsl/urlparse.parse_sql * Lines 161/162 (using self.consumer/token) <- this addition ended up not being needed, but it doesn't hurt. * updateProfileBackgroundImage() - param 'tile' is now True/False rather than a string "true" or string "false" * removed encode_multipart_formdata func, not needed any longer
This commit is contained in:
parent
fa1b581c0f
commit
e54183df9c
2 changed files with 64 additions and 64 deletions
2
setup.py
2
setup.py
|
|
@ -17,7 +17,7 @@ setup(
|
|||
include_package_data = True,
|
||||
|
||||
# Package dependencies.
|
||||
install_requires = ['simplejson', 'oauth2', 'httplib2'],
|
||||
install_requires = ['simplejson', 'oauth2', 'httplib2', 'requests'],
|
||||
|
||||
# Metadata for PyPI.
|
||||
author = 'Ryan McGrath',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue