def generate_request_for_access_token(request_token, auth_server_url=ACCESS_TOKEN_URL):
 http_request = atom.http_core.HttpRequest(auth_server_url, 'POST')
 http_request.headers['Content-Length'] = '0'
 return request_token.modify_request(http_request)

def generate_request_for_access_token ( request_token , auth_server_url = ACCESS_TOKEN_URL ) : http_request = atom . http_core . HttpRequest ( auth_server_url , 'POST' ) http_request . headers [ 'Content-Length' ] = '0' return request_token . modify_request ( http_request )
creates a request to ask the oauth server for an access token .