gpt4 book ai didi

c# - Evernote AuthToken 通过 OAuth

转载 作者:行者123 更新时间:2023-11-30 13:38:44 41 4
gpt4 key购买 nike

我之前使用过 OAuth(使用 Twitter 和 PHP),它很简单。我正在尝试让 OAuth 与 EverNote API 示例一起工作 https://github.com/evernote/evernote-sdk-csharp (因为,正如他们所说,“真正的应用程序使用 OAuth 向 Evernote 进行身份验证”)。我看了这些:

Simple C# Evernote API OAuth example or guide?

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;
}

我如何向其中添加 OAuth 以获得我的 authToken

谢谢。

最佳答案

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

关于c# - Evernote AuthToken 通过 OAuth,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15141655/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com