如何修复未找到表定义的错误?
有谁知道为什么我收到以下错误消息?我开始了解 Facebook 开发的世界,但找不到简单的答案。
代码:
$twitterUrl ="http://query.yahooapis.com/v1/public/yql?q=";
$twitterUrl .= urlencode("select * from twitter.status where id='jzm'");
$twitterUrl .="&format=json";
$twitterFeed = file_get_contents($twitterUrl, true);
$twitterFeed = json_decode($twitterFeed);
print_r($twitterFeed);
收到错误:
stdClass Object ( [error] => stdClass Object ( [lang] => en-US [description] => No definition found for Table twitter.status ) )
Does anyone know why I am getting the below error message? I am starting to learn the world of Facebook development and I cannot find a simple answer.
Code:
$twitterUrl ="http://query.yahooapis.com/v1/public/yql?q=";
$twitterUrl .= urlencode("select * from twitter.status where id='jzm'");
$twitterUrl .="&format=json";
$twitterFeed = file_get_contents($twitterUrl, true);
$twitterFeed = json_decode($twitterFeed);
print_r($twitterFeed);
Error received:
stdClass Object ( [error] => stdClass Object ( [lang] => en-US [description] => No definition found for Table twitter.status ) )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试将
&env=http://datatables.org/alltables.env
添加到您的查询中。Try adding
&env=http://datatables.org/alltables.env
to your query.问题是,您正在尝试加载 Yahoo API 默认情况下无法识别的打开表。
因此,您可以在查询前添加以下查询前缀:
这将加载 自定义社区表,之后您可以使用它。
一般语法为:
阅读更多:在 YQL 中调用开放数据表定义< /a>
The problem is, that you're trying to load the open table which Yahoo API doesn't recognise by default.
So you may prefix your query by the following query:
This will load the custom community table, so after that you can use it.
The general syntax is:
Read more: Invoking an Open Data Table Definition within YQL