Migrated from overview-intro v4
parent
e2a1ecacf9
commit
fc12629562
1 changed files with 3 additions and 2 deletions
|
|
@ -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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue