parameters: (self, scopes, next, consumer_key, consumer_secret=None,
                        rsa_private_key=None,
                        url=gdata.gauth.REQUEST_TOKEN_URL)
docstring: Obtains an OAuth request token to allow the user to authorize this app.
  
      Once this client has a request token, the user can authorize the request
      token by visiting the authorization URL in their browser. After being
      redirected back to this app at the 'next' URL, this app can then exchange
      the authorized request token for an access token.
  
      For more information see the documentation on Google Accounts with OAuth:
      http://code.google.com/apis/accounts/docs/OAuth.html#AuthProcess
  
      Args:
        scopes: list of strings or atom.http_core.Uri objects which specify the
            URL prefixes which this app will be accessing. For example, to access
            the Google Calendar API, you would want to use scopes:
            ['https://www.google.com/calendar/feeds/',
             'http://www.google.com/calendar/feeds/']
        next: str or atom.http_core.Uri object, The URL which the user's browser
            should be sent to after they authorize access to their data. This
            should be a URL in your application which will read the token
            information from the URL and upgrade the request token to an access
            token.
        consumer_key: str This is the identifier for this application which you
            should have received when you registered your application with Google
            to use OAuth.
        consumer_secret: str (optional) The shared secret between your app and
            Google which provides evidence that this request is coming from you
            application and not another app. If present, this libraries assumes
            you want to use an HMAC signature to verify requests. Keep this data
            a secret.
        rsa_private_key: str (optional) The RSA private key which is used to
            generate a digital signature which is checked by Google's server. If
            present, this library assumes that you want to use an RSA signature
            to verify requests. Keep this data a secret.
        url: The URL to which a request for a token should be made. The default
            is Google's OAuth request token provider.
docstring_summary: Obtains an OAuth request token to allow the user to authorize this app.
docstring_tokens: Obtains an OAuth request token to allow the user to authorize this app .
function: def get_oauth_token(self, scopes, next, consumer_key, consumer_secret=None,
                        rsa_private_key=None,
                        url=gdata.gauth.REQUEST_TOKEN_URL):
      """Obtains an OAuth request token to allow the user to authorize this app.
  
      Once this client has a request token, the user can authorize the request
      token by visiting the authorization URL in their browser. After being
      redirected back to this app at the 'next' URL, this app can then exchange
      the authorized request token for an access token.
  
      For more information see the documentation on Google Accounts with OAuth:
      http://code.google.com/apis/accounts/docs/OAuth.html#AuthProcess
  
      Args:
        scopes: list of strings or atom.http_core.Uri objects which specify the
            URL prefixes which this app will be accessing. For example, to access
            the Google Calendar API, you would want to use scopes:
            ['https://www.google.com/calendar/feeds/',
             'http://www.google.com/calendar/feeds/']
        next: str or atom.http_core.Uri object, The URL which the user's browser
            should be sent to after they authorize access to their data. This
            should be a URL in your application which will read the token
            information from the URL and upgrade the request token to an access
            token.
        consumer_key: str This is the identifier for this application which you
            should have received when you registered your application with Google
            to use OAuth.
        consumer_secret: str (optional) The shared secret between your app and
            Google which provides evidence that this request is coming from you
            application and not another app. If present, this libraries assumes
            you want to use an HMAC signature to verify requests. Keep this data
            a secret.
        rsa_private_key: str (optional) The RSA private key which is used to
            generate a digital signature which is checked by Google's server. If
            present, this library assumes that you want to use an RSA signature
            to verify requests. Keep this data a secret.
        url: The URL to which a request for a token should be made. The default
            is Google's OAuth request token provider.
      """
      http_request = None
      if rsa_private_key is not None:
        http_request = gdata.gauth.generate_request_for_request_token(
            consumer_key, gdata.gauth.RSA_SHA1, scopes,
            rsa_key=rsa_private_key, auth_server_url=url, next=next)
      elif consumer_secret is not None:
        http_request = gdata.gauth.generate_request_for_request_token(
            consumer_key, gdata.gauth.HMAC_SHA1, scopes,
            consumer_secret=consumer_secret, auth_server_url=url, next=next)
      else:
        raise MissingOAuthParameters(
            'To request an OAuth token, you must provide your consumer secret'
            ' or your private RSA key.')
  
      response = self.http_client.request(http_request)
      response_body = response.read()
  
      if response.status != 200:
        raise error_from_response('Unable to obtain OAuth request token',
                                  response, RequestError, response_body)
  
      if rsa_private_key is not None:
        return gdata.gauth.rsa_token_from_body(response_body, consumer_key,
                                               rsa_private_key,
                                               gdata.gauth.REQUEST_TOKEN)
      elif consumer_secret is not None:
        return gdata.gauth.hmac_token_from_body(response_body, consumer_key,
                                                consumer_secret,
                                                gdata.gauth.REQUEST_TOKEN)
function_tokens: def get_oauth_token ( self , scopes , next , consumer_key , consumer_secret = None , rsa_private_key = None , url = gdata . gauth . REQUEST_TOKEN_URL ) : http_request = None if rsa_private_key is not None : http_request = gdata . gauth . generate_request_for_request_token ( consumer_key , gdata . gauth . RSA_SHA1 , scopes , rsa_key = rsa_private_key , auth_server_url = url , next = next ) elif consumer_secret is not None : http_request = gdata . gauth . generate_request_for_request_token ( consumer_key , gdata . gauth . HMAC_SHA1 , scopes , consumer_secret = consumer_secret , auth_server_url = url , next = next ) else : raise MissingOAuthParameters ( 'To request an OAuth token, you must provide your consumer secret' ' or your private RSA key.' ) response = self . http_client . request ( http_request ) response_body = response . read ( ) if response . status != 200 : raise error_from_response ( 'Unable to obtain OAuth request token' , response , RequestError , response_body ) if rsa_private_key is not None : return gdata . gauth . rsa_token_from_body ( response_body , consumer_key , rsa_private_key , gdata . gauth . REQUEST_TOKEN ) elif consumer_secret is not None : return gdata . gauth . hmac_token_from_body ( response_body , consumer_key , consumer_secret , gdata . gauth . REQUEST_TOKEN )