我正在尝试使用 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/