Why am I getting a KeyError when attempting to authenticate with Evernote?
I am receiving the following error message when attempting to call the Evernote Python SDK's get_access_token in the oauth authentication process.
KeyError: 'oauth_token'
My code looks like this.
auth_token = client.get_access_token('gjones.166A170DC72.687474703A2F2F6C6XXXX16C686F7374.0DAED5A65D9EDE49231B754CEE6BXXXD','','BXXXE3B3CDA07E91D800FD2679DCXXX8')
Note that I'm leaving the token_secret argument as a blank string based on the discussion here:
https://discussion.evernote.com/topic/18710-access-token-secret-returning-blank/
Thanks for any advice or code samples of successful Evernote oauth integration.
python oauth-2.0 evernote
add a comment |
I am receiving the following error message when attempting to call the Evernote Python SDK's get_access_token in the oauth authentication process.
KeyError: 'oauth_token'
My code looks like this.
auth_token = client.get_access_token('gjones.166A170DC72.687474703A2F2F6C6XXXX16C686F7374.0DAED5A65D9EDE49231B754CEE6BXXXD','','BXXXE3B3CDA07E91D800FD2679DCXXX8')
Note that I'm leaving the token_secret argument as a blank string based on the discussion here:
https://discussion.evernote.com/topic/18710-access-token-secret-returning-blank/
Thanks for any advice or code samples of successful Evernote oauth integration.
python oauth-2.0 evernote
add a comment |
I am receiving the following error message when attempting to call the Evernote Python SDK's get_access_token in the oauth authentication process.
KeyError: 'oauth_token'
My code looks like this.
auth_token = client.get_access_token('gjones.166A170DC72.687474703A2F2F6C6XXXX16C686F7374.0DAED5A65D9EDE49231B754CEE6BXXXD','','BXXXE3B3CDA07E91D800FD2679DCXXX8')
Note that I'm leaving the token_secret argument as a blank string based on the discussion here:
https://discussion.evernote.com/topic/18710-access-token-secret-returning-blank/
Thanks for any advice or code samples of successful Evernote oauth integration.
python oauth-2.0 evernote
I am receiving the following error message when attempting to call the Evernote Python SDK's get_access_token in the oauth authentication process.
KeyError: 'oauth_token'
My code looks like this.
auth_token = client.get_access_token('gjones.166A170DC72.687474703A2F2F6C6XXXX16C686F7374.0DAED5A65D9EDE49231B754CEE6BXXXD','','BXXXE3B3CDA07E91D800FD2679DCXXX8')
Note that I'm leaving the token_secret argument as a blank string based on the discussion here:
https://discussion.evernote.com/topic/18710-access-token-secret-returning-blank/
Thanks for any advice or code samples of successful Evernote oauth integration.
python oauth-2.0 evernote
python oauth-2.0 evernote
asked Nov 14 '18 at 15:58
TreyTrey
726
726
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Evernote SDK has both Django- and Pyramid-based server examples that perform OAuth authentication: https://github.com/evernote/evernote-sdk-python/tree/master/sample/django/oauth
OAuth procedure is described in https://dev.evernote.com/doc/articles/authentication.php and you can use any OAuth 1.0 Python library to implement the server (most OAuth libraries have a reusable example code; the only thing you will likely need to change there, apart from providing your api key and secret, is Evernote OAuth server URL: https://sandbox.evernote.com/oauth for sandbox, and `` . To initiate the OAuth sequence, you need to pass both consumer key and consumer secret.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53304196%2fwhy-am-i-getting-a-keyerror-when-attempting-to-authenticate-with-evernote%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Evernote SDK has both Django- and Pyramid-based server examples that perform OAuth authentication: https://github.com/evernote/evernote-sdk-python/tree/master/sample/django/oauth
OAuth procedure is described in https://dev.evernote.com/doc/articles/authentication.php and you can use any OAuth 1.0 Python library to implement the server (most OAuth libraries have a reusable example code; the only thing you will likely need to change there, apart from providing your api key and secret, is Evernote OAuth server URL: https://sandbox.evernote.com/oauth for sandbox, and `` . To initiate the OAuth sequence, you need to pass both consumer key and consumer secret.
add a comment |
Evernote SDK has both Django- and Pyramid-based server examples that perform OAuth authentication: https://github.com/evernote/evernote-sdk-python/tree/master/sample/django/oauth
OAuth procedure is described in https://dev.evernote.com/doc/articles/authentication.php and you can use any OAuth 1.0 Python library to implement the server (most OAuth libraries have a reusable example code; the only thing you will likely need to change there, apart from providing your api key and secret, is Evernote OAuth server URL: https://sandbox.evernote.com/oauth for sandbox, and `` . To initiate the OAuth sequence, you need to pass both consumer key and consumer secret.
add a comment |
Evernote SDK has both Django- and Pyramid-based server examples that perform OAuth authentication: https://github.com/evernote/evernote-sdk-python/tree/master/sample/django/oauth
OAuth procedure is described in https://dev.evernote.com/doc/articles/authentication.php and you can use any OAuth 1.0 Python library to implement the server (most OAuth libraries have a reusable example code; the only thing you will likely need to change there, apart from providing your api key and secret, is Evernote OAuth server URL: https://sandbox.evernote.com/oauth for sandbox, and `` . To initiate the OAuth sequence, you need to pass both consumer key and consumer secret.
Evernote SDK has both Django- and Pyramid-based server examples that perform OAuth authentication: https://github.com/evernote/evernote-sdk-python/tree/master/sample/django/oauth
OAuth procedure is described in https://dev.evernote.com/doc/articles/authentication.php and you can use any OAuth 1.0 Python library to implement the server (most OAuth libraries have a reusable example code; the only thing you will likely need to change there, apart from providing your api key and secret, is Evernote OAuth server URL: https://sandbox.evernote.com/oauth for sandbox, and `` . To initiate the OAuth sequence, you need to pass both consumer key and consumer secret.
answered Nov 19 '18 at 19:00
Igor AfanasyevIgor Afanasyev
46139
46139
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53304196%2fwhy-am-i-getting-a-keyerror-when-attempting-to-authenticate-with-evernote%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown