Evernote:无法生成临时令牌

时间:2016-10-27 15:41:12

标签: oauth evernote

我正在尝试将OAuth1evernote api一起使用文档:https://dev.evernote.com/doc/articles/authentication.php。 但是,每当我尝试生成临时令牌时,我都会遇到:

  

糟糕,我们遇到了错误。

我正在使用以下oauth库:https://github.com/sirikata/liboauthcpp 我所做的只是用以下内容修改demo / simple_auth.cpp:

std::string consumer_key = ""; // Key from evernote
std::string consumer_secret = ""; // Secret from evernote
std::string request_token_url = "https://sandbox.evernote.com/oauth";
std::string request_token_query_args = "oauth_callback=oob";
std::string authorize_url = "https://sandbox.evernote.com/OAuth.action";
std::string access_token_url = "https://sandbox.evernote.com/oauth";

1 个答案:

答案 0 :(得分:1)

Evernote OAuth不支持带外(oob)验证。请使用有效的回调网址进行尝试。

相关问题