Evernote:无法生成临时令牌

Evernote: Unable to Generate a Temporary Token

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

Oops, we encountered an error.

我正在使用以下 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";

Evernote OAuth 不支持带外 (oob) 验证。请尝试使用有效的回调 URL.