如何在 Yahoo PHP5 Sdk yos-social-php5 上使用 YQL 获取私有数据
我正在使用 Yahoo PHP5 SDK 并使用它从表 Social.contacts 中获取用户联系人这是私人数据。在 Delicious 的示例中,它仅显示从 YQL 获取公共数据。我可以知道应该使用什么参数来使用 YahooYQLQuery 和 Execute() 类获取私有数据吗?我尝试按照该示例进行操作,但出现以下错误消息:
YQL 查询失败并出现错误:“身份验证错误。表 Social.contacts 需要比提供的安全级别更高的安全级别,您提供了 ANY,但至少需要 USER”。
I am using Yahoo PHP5 SDK and use it to fetch user contacts from table social.contacts which is a private data. On the example, from Delicious, it only shown fetching public data from YQL. May I know what parameter should I use to fetch private data with the class YahooYQLQuery and Execute()? I have tried to follow the example but following error message appear:
YQL query failed with error: "Authentication Error. The table social.contacts requires a higher security level than is provided, you provided ANY but at least USER is expected".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 YQL 代码示例页面上,最好的示例演练的是 YQL 社交应用程序。 (Delicious/OAuth 的东西现在已经过时了。)
此外,当创建您的 Yahoo API 密钥,确保选择“此应用程序需要访问私人用户数据”,然后在“联系人”下,根据您的应用程序选择“读取”或“读/写”。这可能会导致您的 YQL 失败。
On the YQL code examples page, the best example to walk through is the YQL Social Application. (The Delicious/OAuth stuff is obsolete now.)
Also, when creating your Yahoo API key, make sure to select "This app requires access to private user data" and under Contacts, choose either Read or Read/Write, as appropriate for your app. This may be causing your YQL failure.