parameters: (self, url, **kwargs)
docstring: Return a request object, using specified API path and
          arguments.
docstring_summary: Return a request object, using specified API path and
          arguments.
docstring_tokens: Return a request object using specified API path and arguments .
function: def __init__(self, url, **kwargs):
          """
          Return a request object, using specified API path and
          arguments.
          """
          kwargs['api_key'] = self.api_key
          self._url = url.lstrip('/')
          self._kwargs = dict([(kwa, kwv) for kwa, kwv in list(kwargs.items())
                                          if kwv is not None])
  
          locale = get_locale()
          kwargs = {}
          for k, v in list(self._kwargs.items()):
              kwargs[k] = locale.encode(v)
          url = '{0}{1}?{2}'\
                  .format(self._base_url, self._url, urlencode(kwargs))
  
          _py3Request.__init__(self, url)
          self.add_header('Accept', 'application/json')
          self.lifetime = 3600
function_tokens: def __init__ ( self , url , * * kwargs ) : kwargs [ 'api_key' ] = self . api_key self . _url = url . lstrip ( '/' ) self . _kwargs = dict ( [ ( kwa , kwv ) for kwa , kwv in list ( kwargs . items ( ) ) if kwv is not None ] ) locale = get_locale ( ) kwargs = { } for k , v in list ( self . _kwargs . items ( ) ) : kwargs [ k ] = locale . encode ( v ) url = '{0}{1}?{2}' . format ( self . _base_url , self . _url , urlencode ( kwargs ) ) _py3Request . __init__ ( self , url ) self . add_header ( 'Accept' , 'application/json' ) self . lifetime = 3600