lastlegion / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

Support changing profile picture #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set profile_image_url on a twitter.User object
2. check to see if the user's picture has changed

What is the expected output? What do you see instead?
Expect profile pic to change, and changes to persist. Neither of these happen

What version of the product are you using? On what operating system?
0.5 on Mac OS X 10.5.6

Merely changing and persisting the profile pic URL would be a good start -
uploading images not required at first...

Original issue reported on code.google.com by rent.lup...@gmail.com on 23 Mar 2009 at 3:10

GoogleCodeExporter commented 9 years ago
I think it would be more in line with the current implementation model to have 
explicit api method calls for 
each of the account update methods in the API:

account/update_delivery_device 
account/update_profile_colors 
account/update_profile_image 
account/update_profile_background_image
account/update_profile 

Implementing those wouldn't be very complicated, and would leave no mystery as 
to which of a user's 
properties may be changed by simply updating an object and which wouldn't.

Original comment by joegermu...@gmail.com on 21 Apr 2009 at 4:16

GoogleCodeExporter commented 9 years ago
If anyone is interested i have posted a work around in pycurl here.
http://door.just1.name/door/updating-profile-image-using-python-and-curl/

Original comment by queenofe...@gmail.com on 6 Jun 2009 at 1:18

GoogleCodeExporter commented 9 years ago
Thanks.  I implemented this in the java-twitter code, and it shouldn't be that 
hard
to duplicate in the python code.  The hardest part was all the encoding and 
file type
issues that went into the upload itself, but it should be doable here as well.

Original comment by dclinton on 6 Jun 2009 at 4:10