Skip to content

Addition to documentation: Auth Tokens #2

@sampaio96

Description

@sampaio96

As you might know, Evernote doesn't support Dev Tokens anymore. Getting my AuthToken was easy after I got my API Key. (Got it here, with Basic access for safety, and it took 2 days.)
I just ran the Django sample in the Evernote Python 2 SDK. You may want to add that suggestion to the Readme.
More details: On a separate environment, clone the repository in the link. Then follow the instructions for Django with OAuth, and simply change the file sample/django/oauth/views.py to print your AuthToken to the terminal:

Before:

try:
        client = get_evernote_client()
        client.get_access_token(
            request.session['oauth_token'],
            request.session['oauth_token_secret'],
            request.GET.get('oauth_verifier', '')
        )

After:

try:
        client = get_evernote_client()
        auth_token = client.get_access_token(
            request.session['oauth_token'],
            request.session['oauth_token_secret'],
            request.GET.get('oauth_verifier', '')
        )
        print(auth_token)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions