Php Google Beacon API-诊断调用失败

Php Google Beacon API-诊断调用失败,php,google-api,google-api-php-client,beacon,proximity,Php,Google Api,Google Api Php Client,Beacon,Proximity,我在这里完全不知所措…下面的两个电话使用相同的服务,但一个很好,另一个失败了…我希望另一组眼球可以捕捉到我做错了什么。在谷歌OAuth操场上,他们似乎都工作得很好 !! CRASHES !! //Googles Class class Google_Service_Proximitybeacon_BeaconsDiagnostics_Resource extends Google_Service_Resource { public function listBeaconsDiagno

我在这里完全不知所措…下面的两个电话使用相同的服务,但一个很好,另一个失败了…我希望另一组眼球可以捕捉到我做错了什么。在谷歌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/xtracto/public_html/test4.php:121堆栈跟踪:#0{main}中调用/home/xtracto/public_html/test4.php第121行的null上的成员函数listBeaconsDiagnostics()

这是我收到的致命错误,奇怪的是,上面的调用和其他调用几乎完全相同,但这两个扩展类附件/诊断似乎是造成最大问题的原因

提前谢谢