从 Windows 应用程序 C# Winforms 使用 Orkut opensocial API

发布于 2024-08-10 17:46:23 字数 1436 浏览 9 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倚栏听风 2024-08-17 17:46:23

是的,有。但这条路并不那么简单。

首先,也是最重要的,您需要决定对用户进行身份验证的方式。有两种方式:

  • 2 条腿
  • 3 条腿

两种方式均可在 此处< /a> 并使用 OAuth 协议。

对于 2 条腿,您的用户可以直接在您的应用程序中输入用户名和密码,但您需要注册 orkut 小工具才能获取用户密钥和密码。用户密钥必须由 Orkut 团队注册才能授予对您的应用程序的访问权限。但以后将不再支持这种方法。

基本上在 3-legged 中,Orkut 用户将被重定向到 google 帐户身份验证页面。因此,您的应用程序需要管理浏览器打开/关闭身份验证等。有一个可用的 java api 这里

这是最复杂的部分。获得访问密钥后,您可以使用 Opensocial 请求使用 JSON 协议提交申请。有相应的 C# 库。

Yes, there is. But the path is not that simple.

First of all, and most important, you need to decide the way you will authenticate users. There are two ways:

  • 2 legged
  • 3 legged

Both can be found in more detail here and use the OAuth protocol.

In the case of 2 legged your user can enter userName and Password straight away in your application but you need to register a orkut gadget in order to obtain a consumer key and secret. The consumer key must be registered by Orkut team in order to grant access to your application. But this method will no longer be supported in the future.

Basically in the 3-legged, the Orkut user will be re-directed to a google account authentication page. So your application will need to manage a browser open/close authentication etc. There's an java api available here

That was the most complicated part. Once you have your access key, you can submit requisitions using JSon protocol using opensocial requests. There are C# libs for that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文