Migrated from overview-intro v2

ryanmcgrath 2010-09-13 02:21:36 -07:00
parent e44fe74377
commit 5a890f98b1

@ -19,5 +19,8 @@ twitter = tango.setup(authtype="Basic", username="example", password="example")
# Using OAuth Authentication (Note: OAuth is the default, specify Basic if needed) # Using OAuth Authentication (Note: OAuth is the default, specify Basic if needed)
auth_keys = {"consumer_key": "yourconsumerkey", "consumer_secret": "yourconsumersecret"} auth_keys = {"consumer_key": "yourconsumerkey", "consumer_secret": "yourconsumersecret"}
twitter = tango.setup(username="example", password="example", oauth_keys=auth_keys) twitter = tango.setup(username="example", password="example", oauth_keys=auth_keys)
# Using Basic Authentication and adding custom HTTP Headers
twitter = tango.setup(authtype="Basic", username="example", password="example", headers="your_headers_here")
</code> </code>
</pre> </pre>