Skip to content

Get Auth without django #96

@ibereranieri

Description

@ibereranieri

For those are trying to generates the verified token without django. This is the way.
This is by far not the best solution but is working for my personal issues

import webbrowser

sandbox=False
china=False
client = EvernoteClient(consumer_key=<CONSUMER_KEY>,
consumer_secret=<CONSUMER_SECRET>,
sandbox=sandbox,china=china
)
request_token=client.get_request_token('http://localhost')
authorize_url=client.get_authorize_url(request_token)
webbrowser.open(authorize_url)

#This will open the verification window for your app on Evernote (set for the time you desire)

access_token = client.get_access_token(
request_token['oauth_token'],
request_token['oauth_token_secret'],
oauth_verifier
)

#Look for the new access token on the generated url
print("Access Token:", access_token)

#now you can use this new access_token on your projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions