【发布时间】:2014-03-07 16:35:41
【问题描述】:
我正在使用 google-api-php-client (https://github.com/google/google-api-php-client) 当我尝试连接到 Freebase 服务时,我收到以下错误:
Fatal error: Call to undefined method Google_Service_Freebase::call()
这是我的代码的 sn-p:
$freebase->search(array('automotive');
Freebase 服务中的搜索功能如下所示:
public function search($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('search', array($params));
}
它调用了一个内部函数调用,但它在类中不存在..
有人建议吗?
【问题讨论】: