如何在 Yahoo PHP5 Sdk 上使用 YQL 获取私人数据 yos-social-php5 [英] How to fetch private data with YQL on Yahoo PHP5 Sdk yos-social-php5

查看:26
本文介绍了如何在 Yahoo PHP5 Sdk 上使用 YQL 获取私人数据 yos-social-php5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Yahoo PHP5 SDK 并使用它从表中获取用户联系人social.contacts 这是一个私人数据.在来自 Delicious 的示例中,它仅显示从 YQL 获取公共数据.我可以知道应该使用什么参数来获取 YahooYQLQuery 和 Execute() 类的私有数据吗?我尝试按照示例进行操作,但出现以下错误消息:

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 查询失败并出现错误:身份验证错误.表 social.contacts 需要比提供的更高的安全级别,您提供了 ANY,但至少需要 USER".

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".

推荐答案

关于 YQL 代码示例页面,最好的示例是 YQL 社交应用程序.(Delicious/OAuth 的东西现在已经过时了.)

On the YQL code examples page, the best example to walk through is the YQL Social Application. (The Delicious/OAuth stuff is obsolete now.)

此外,当创建您的 Yahoo API 密钥时,请确保选择此应用程序需要访问私人用户数据"并在联系人下,根据您的应用程序选择读取或读取/写入.这可能会导致您的 YQL 失败.

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.

这篇关于如何在 Yahoo PHP5 Sdk 上使用 YQL 获取私人数据 yos-social-php5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆