Reorganizing into a more package based structure, setting an initial (not working) setup.py file - this will be expanded soon

This commit is contained in:
Ryan McGrath 2009-07-28 03:13:48 -04:00
parent 4fed1e241f
commit d7d170cc3b
16 changed files with 1357 additions and 0 deletions

11
examples/tango_setup.py Normal file
View file

@ -0,0 +1,11 @@
import tango
# Using no authentication and specifying Debug
twitter = tango.setup(debug=True)
# Using Basic Authentication
twitter = tango.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 = tango.setup(username="example", password="example", oauth_keys=auth_keys)