

def generate_request_for_access_token(request_token, auth_server_url=ACCESS_TOKEN_URL):
    'Creates a request to ask the OAuth server for an access token.\n\n  Requires a request token which the user has authorized. See the\n  documentation on OAuth with Google Data for more details:\n  http://code.google.com/apis/accounts/docs/OAuth.html#AccessToken\n\n  Args:\n    request_token: An OAuthHmacToken or OAuthRsaToken which the user has\n        approved using their browser.\n    auth_server_url: (optional) The URL at which the OAuth access token is\n        requested. Defaults to\n        https://www.google.com/accounts/OAuthGetAccessToken\n\n  Returns:\n    A new HttpRequest object which can be sent to the OAuth server to\n    request an OAuth Access Token.\n  '
    http_request = atom.http_core.HttpRequest(auth_server_url, 'POST')
    http_request.headers['Content-Length'] = '0'
    return request_token.modify_request(http_request)

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py generate_request_for_access_token/original