通过OAuth进行Evernote AuthToken

use*_*388 3 c# api oauth evernote

之前我曾与OAuth合作(使用Twitter和PHP)并且很简单.我试图让OAuth使用EverNote API示例https://github.com/evernote/evernote-sdk-csharp(因为,正如他们所说,"真实应用程序使用OAuth通过Evernote进行身份验证").我看了看这些:

简单的C#Evernote API OAuth示例或指南?

https://github.com/sethhitch/csharp-oauth-sample

http://blog.stevienova.com/2008/04/19/oauth-getting-started-with-oauth-in-c-net/

但是,我仍然不知道该怎么做...这是我的代码:

    // Real applications authenticate with Evernote using OAuth, but for the
    // purpose of exploring the API, you can get a developer token that allows
    // you to access your own Evernote account. To get a developer token, visit 
    // https://sandbox.evernote.com/api/DeveloperToken.action
    String authToken = "myAuthCode";

    if (authToken == "your developer token") {
      Console.WriteLine("Please fill in your developer token");
      Console.WriteLine("To get a developer token, visit https://sandbox.evernote.com/api/DeveloperToken.action");
      return;
    }
Run Code Online (Sandbox Code Playgroud)

如何将OAuth添加到此以获取我的authToken

谢谢.

Ric*_*rro 7

检查此示例项目:http://discussion.evernote.com/topic/30584-here-is-a-net-oauth-assembly/.我认为这将有助于您了解oauth的工作原理.