def __init__(self,
               username=None,
               password=None,
               input_encoding=None,
               request_headers=None):
    self._cache = _MemCache()
    self._urllib = urllib2
    self._cache_timeout = Api.DEFAULT_CACHE_TIMEOUT
    self._InitializeRequestHeaders(request_headers)
    self._InitializeUserAgent()
    self._InitializeDefaultParameters()
    self._input_encoding = input_encoding
    self.SetCredentials(username, password)
Instantiate a new twitter.Api object.
dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/Api.__init__