twython/examples/update_profile_image.py

5 lines
195 B
Python

import twython
# Instantiate Twython with Basic (HTTP) Authentication
twitter = twython.setup(authtype="Basic", username="example", password="example")
twitter.updateProfileImage("myImage.png")