New package structure; twython is now separated out into core/oauth/streaming. To maintain compatibility with older Twython versions, simply import twython like: 'import twython.core as twython' - this will allow for easier oauth/streaming development, and should hopefully fix a lot of the installation issues people kept running into with easy_install
This commit is contained in:
parent
fc5aaebda3
commit
a3edbb2348
26 changed files with 35 additions and 34 deletions
|
|
@ -1,11 +1,7 @@
|
|||
import twython
|
||||
import twython.core as twython
|
||||
|
||||
# Using no authentication and specifying Debug
|
||||
twitter = twython.setup(debug=True)
|
||||
# Using no authentication
|
||||
twitter = twython.setup()
|
||||
|
||||
# Using Basic Authentication
|
||||
twitter = twython.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 = twython.setup(username="example", password="example", oauth_keys=auth_keys)
|
||||
# Using Basic Authentication (core is all about basic auth, look to twython.oauth in the future for oauth)
|
||||
twitter = twython.setup(username="example", password="example")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue