如何在 Yahoo PHP5 Sdk yos-social-php5 上使用 YQL 获取私有数据

发布于 2025-01-03 13:03:59 字数 373 浏览 2 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(1

星軌x 2025-01-10 13:03:59

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.

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