"""Twitter API"""
def __init__(self, auth_handler=None, host='twitter.com', cache=None,
- secure=False, api_root='', validate=True):
+ secure=False, api_root='', validate=True,
+ retry_count=0, retry_delay=0):
# you may access these freely
self.auth_handler = auth_handler
self.host = host
self.cache = cache
self.secure = secure
self.validate = validate
+ self.retry_count = retry_count
+ self.retry_delay = retry_delay
# not a good idea to touch these
self._username = None
post_data = kargs.pop('post_data', None)
# check for retry request parameters
- retry_count = kargs.pop('retry_count', 0)
- retry_delay = kargs.pop('retry_delay', 0)
+ retry_count = kargs.pop('retry_count', api.retry_count)
+ retry_delay = kargs.pop('retry_delay', api.retry_delay)
# check for headers
headers = kargs.pop('headers', {})