All example code now properly references Twython instead of Tango - this should've been done months ago, can't believe it slipped my mind. Sorry for anyone who was totally confused by this. ;P

This commit is contained in:
Ryan McGrath 2009-10-10 17:22:29 -04:00
parent 46c93f4adb
commit 024742d51b
12 changed files with 38 additions and 27 deletions

11
examples/twython_setup.py Normal file
View file

@ -0,0 +1,11 @@
import twython
# Using no authentication and specifying Debug
twitter = twython.setup(debug=True)
# Using Basic Authentication
twitter = twython.setup(authtype="Basic", username="example", password="example")
# Using OAuth Authentication (Note: OAuth is the default, specify Basic if needed)
auth_keys = {"consumer_key": "yourconsumerkey", "consumer_secret": "yourconsumersecret"}
twitter = twython.setup(username="example", password="example", oauth_keys=auth_keys)