Exemplo n.º 1
0
def get_auth_url(request, redirect_url):
    client = _get_new_client()
    try:
        tok = client.get_request_token()
    except:
        return None

    request.session["request_token"] = tok
    url = client.get_authenticate_url(tok["oauth_token"])
    return url
Exemplo n.º 2
0
def get_auth_url(request, redirect_url):
    client = _get_new_client()
    try:
        tok = client.get_request_token()
    except:
        return None

    request.session['request_token'] = tok
    url = client.get_authenticate_url(tok['oauth_token'])
    return url