Reorganizing into a more package based structure, setting an initial (not working) setup.py file - this will be expanded soon
This commit is contained in:
parent
4fed1e241f
commit
d7d170cc3b
16 changed files with 1357 additions and 0 deletions
10
examples/rate_limit.py
Normal file
10
examples/rate_limit.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import tango
|
||||
|
||||
# Instantiate with Basic (HTTP) Authentication
|
||||
twitter = tango.setup(authtype="Basic", username="example", password="example")
|
||||
|
||||
# This returns the rate limit for the requesting IP
|
||||
rateLimit = twitter.getRateLimitStatus()
|
||||
|
||||
# This returns the rate limit for the requesting authenticated user
|
||||
rateLimit = twitter.getRateLimitStatus(rate_for="user")
|
||||
Loading…
Add table
Add a link
Reference in a new issue