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:
Ryan McGrath 2009-07-28 03:13:48 -04:00
parent 4fed1e241f
commit d7d170cc3b
16 changed files with 1357 additions and 0 deletions

10
examples/rate_limit.py Normal file
View 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")