Migrated from overview-intro v6
parent
50ffa575d8
commit
0ba9cbc93f
1 changed files with 3 additions and 7 deletions
|
|
@ -11,17 +11,13 @@ Twython was designed to be quick and easy to use. Before you can use any of the
|
|||
import twython
|
||||
|
||||
# Using no authentication
|
||||
twitter = twython.setup()
|
||||
twitter = twython.core.setup()
|
||||
|
||||
# Using Basic Authentication
|
||||
twitter = twython.setup(authtype="Basic", username="example", password="example")
|
||||
|
||||
# Using OAuth Authentication (Coming soon)
|
||||
auth_keys = {"consumer_key": "yourconsumerkey", "consumer_secret": "yourconsumersecret"}
|
||||
twitter = twython.setup(username="example", password="example", oauth_keys=auth_keys)
|
||||
twitter = twython.core.setup(username="example", password="example")
|
||||
|
||||
# Using Basic Authentication and adding custom HTTP Headers
|
||||
twitter = twython.setup(authtype="Basic", username="example",
|
||||
twitter = twython.core.setup(username="example",
|
||||
password="example", headers="your_headers_here")
|
||||
</code>
|
||||
</pre>
|
||||
Loading…
Add table
Add a link
Reference in a new issue