我在这里完全失败了......下面的两个电话正在使用相同的服务,但另一个工作很好而另一个失败了...我希望另一组眼球可能会抓到我做错的事情。在谷歌OAuth游乐场,他们似乎都工作正常
!! CRASHES !!
//Googles Class
class Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource extends Google_Service_Resource
{
public function listBeaconsDiagnostics($beaconName, $optParams = array())
{
$params = array('beaconName' => $beaconName);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListDiagnosticsResponse");
}
}
//Service
$service = new Google_Service_Proximitybeacon($client);
//Call
$beaconName = 'beacons/3!f7826da64fa24e9880243rgenfgv43kgekfe';
$request = $service->diagnostics->listBeaconsDiagnostics($beaconName);
!! WORKS GREAT !!
//Googles Class
class Google_Service_Proximitybeacon_Namespaces_Resource extends Google_Service_Resource
{
public function listNamespaces($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Proximitybeacon_ListNamespacesResponse");
}
}
//Service
$service = new Google_Service_Proximitybeacon($client);
//Call
$request = $service->namespaces->listNamespaces();
致命错误:未捕获错误:在/home/xtractio/public_html/test4.php:121中调用null上的成员函数listBeaconsDiagnostics()堆栈跟踪:#home {xtractio / public_html / test4中抛出#0 {main}第121行的.php
这是我收到的致命错误,奇怪的是上面的调用和其他调用几乎完全相同,但这两个扩展类附件/诊断似乎导致了最多的问题。
提前致谢!