C# 使用C对Evernote进行身份验证#

C# 使用C对Evernote进行身份验证#,c#,visual-studio,evernote,C#,Visual Studio,Evernote,我在尝试使用Evernote API密钥对Evernote进行身份验证时遇到问题。我在做什么 ENSession.SetSharedSessionConsumerKey("my key", "my secret"); if (ENSession.SharedSession.IsAuthenticated == false) { ENSession.SharedSession.AuthenticateToEvernote(); } ENSession.SetSharedSessionC

我在尝试使用Evernote API密钥对Evernote进行身份验证时遇到问题。我在做什么

ENSession.SetSharedSessionConsumerKey("my key", "my secret");

if (ENSession.SharedSession.IsAuthenticated == false)
{
    ENSession.SharedSession.AuthenticateToEvernote();
}
ENSession.SetSharedSessionConsumerKey(“我的密钥”、“我的秘密”)工作正常。我的意思是它没有返回值,所以我不能真正检查。但是当我尝试进行身份验证时,使用
ENSession.SharedSession.AuthenticateToEvernote()已验证的
ENSession.SharedSession.IsAuthenticated
仍然为false。我读到这个方法会打开一个Webbrowser(?)窗口并请求auth。但什么也没发生。所以,我假设这个方法需要一个系统的首选web浏览器,然而,它似乎没有 我使用的是Visual Studio Community 2015,我已经通过NuGet安装了Evernote SDK
有什么问题吗?该方法是否已损坏,或者我的VS配置是否错误(我尚未处理VS配置)

我发现了我的错误:通过搜索Evernote API的源代码,我发现:

///**
    //*  Set up the session object with an app consumer key and secret. This is the standard setup
    //*  method. App keys are available from dev.evernote.com. You must call this method BEFORE the
    //*  sharedSession is accessed.
    //*
    //*   key    Consumer key for your app
    //*   secret Consumer secret for yor app
    //*   host   (optional) If you're using a non-production host, like the developer sandbox, specify it here.
    //*/
    public static void SetSharedSessionConsumerKey(string sessionConsumerKey, string sessionConsumerSecret, string sessionHost = null)
所以我只调用了
SetSharedSessionConsumerKey(“key”、“secret”、“sandbox.evernote.com”)和一切工作