Migrated from overview-intro v4

ryanmcgrath 2010-09-13 02:21:38 -07:00
parent e2a1ecacf9
commit fc12629562

@ -16,11 +16,12 @@ twitter = tango.setup()
# Using Basic Authentication # Using Basic Authentication
twitter = tango.setup(authtype="Basic", username="example", password="example") twitter = tango.setup(authtype="Basic", username="example", password="example")
# Using OAuth Authentication (Note: OAuth is the default, specify Basic if needed) <b>Currently in development</b> # 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 # Using Basic Authentication and adding custom HTTP Headers
twitter = tango.setup(authtype="Basic", username="example", password="example", headers="your_headers_here") twitter = tango.setup(authtype="Basic", username="example",
password="example", headers="your_headers_here")
</code> </code>
</pre> </pre>