Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
abba38c0
Commit
abba38c0
authored
Aug 25, 2009
by
Josh Roesslein
Browse files
Fixes to tutorial 1.
parent
4b1d884e
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
abba38c0
...
...
@@ -16,3 +16,4 @@ during upgrade will be listed here.
+ Fixes
+ User.following is now set to False instead of None
when user is not followed.
+ python 2.5 import syntax error fixed
ROADMAP
View file @
abba38c0
...
...
@@ -13,3 +13,4 @@ Future...
+ rate limit governor
+ command line client example
+ retweet api [DONE BUT NEEDS TESTING]
+ async requests
tutorial/t1.py
View file @
abba38c0
...
...
@@ -83,9 +83,9 @@ api_via_oath = tweepy.API(oauth_auth)
To make creating API instances a bit more easy you way use the
static method API.new() to create new instances. Here is an example:
"""
new_basic_api
=
tweepy
.
API
.
new
(
auth
=
'basic'
,
username
,
password
)
new_oauth_api
=
tweepy
.
API
.
new
(
auth
=
'oauth'
,
consumer_key
,
consumer_secret
)
new_oauth
.
api
.
auth_handler
# here's how to access the auth handler to do the oauth flow
new_basic_api
=
tweepy
.
API
.
new
(
'basic'
,
username
,
password
)
new_oauth_api
=
tweepy
.
API
.
new
(
'oauth'
,
consumer_key
,
consumer_secret
)
new_oauth
_
api
.
auth_handler
# here's how to access the auth handler to do the oauth flow
""" The End
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment