2016-10-27 11 views
0

https://dev.evernote.com/doc/articles/authentication.phpの後にOAuth1evernote apiを使用しようとしています。 ただし、一時的なトークンを生成しようとすると、次のメッセージが表示されます。Evernote:一時的なトークンを生成できません

エラーが発生しました。

私は、次のOAuthライブラリを使用しています:https://github.com/sirikata/liboauthcpp と私がしたすべては、次のようにデモ/ 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

EvernoteのOAuthのはアウトオブバンドをサポートしていません(oob)検証。有効なコールバックURLで試してください。

+0

ありがとう、ドキュメントに示唆されているようにlocalhostに変更しました。 – JohnWineShirt

関連する問題