c# - 如何检索 Yahoo 的联系人 API 的 GUID

标签 c# asp.net oauth

我正在尝试使用 Yahoo Contacts API 在我正在构建的网站上添加“邀请您的 friend ”功能。

我找到了要调用的正确 Web 服务 (http://social.yahooapis.com/v1/user/{guid}/contacts),但它要求提供用户的 GUID,不是他们的用户名/密码。

我已经搜索过,但无法通过 Yahoo API 找到“查找”功能,该功能让我可以从用户的用户名/密码获取用户的 guid。

有没有人使用过 Contacts API。

我已经阅读了文档,也查看了 YQL,但我仍然没有找到如何获取用户的 guid。

谢谢你们。

最佳答案

这是来自他们的开发者文档:

To get the GUID of the user who is running the application, call the GET operation on the following URI. This user must be signed in to Yahoo!

URI:
      http://social.yahooapis.com/v1/me/guid

http://developer.yahoo.com/social/rest_api_guide/introspective-guid-resource.html

请注意,您无法静默登录用户——您需要显示带有弹出窗口的 Yahoo 登录页面并获取 OAuth token (有关此内容的更多信息,请参阅开发文档)。

关于c# - 如何检索 Yahoo 的联系人 API 的 GUID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2993409/

相关文章:

c# - 使用 WriteToServer 方法插入数据 datetime 列给出异常

c# - 在 Visual Studio Code for Mac 上找不到类型或命名空间名称 'System'

c# - 如何找到套接字的IP C#BeginReceive

asp.net - 在 ASP.Net 中响应 HTTP Post

c# - CS0246 : Missing an assembly reference - works locally, 但不在网络服务器上

python - Google 混合 OpenID+OAuth 登录不提示 OAuth 访问

oauth - twitter/verify_credentials 是什么样的?

java - 收到 OAuthException : An unexpected error has occurred. 类型的 Facebook 错误响应,请稍后重试您的请求。 (代码 2,子代码为空)

c# - MVC 和 WebAPI "Multiple types were found that match the controller named..."

c# - 如何测量应用程序加载所有使用的程序集所花费的时间?