Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google API客户端库-PHP:Google游戏服务发生错误(代码:500),没有任何消息_Api_Server_Google Api Php Client_Leaderboard - Fatal编程技术网

Google API客户端库-PHP:Google游戏服务发生错误(代码:500),没有任何消息

Google API客户端库-PHP:Google游戏服务发生错误(代码:500),没有任何消息,api,server,google-api-php-client,leaderboard,Api,Server,Google Api Php Client,Leaderboard,我正在使用GoogleAPI客户端库-PHP和GoogleAPI控制台上发布的服务帐户 我想获得排行榜列表,但出现错误代码500,没有任何消息 在API控制台上启用Google Play游戏管理、Google Play游戏服务、Google+API 而且,Android应用程序使用这个排行榜是正确的 我能做些什么来解决这个问题? 请求代码(PHP) 错误occours Fatal error: Uncaught exception 'Google_Service_Exception' w

我正在使用GoogleAPI客户端库-PHP和GoogleAPI控制台上发布的服务帐户

我想获得排行榜列表,但出现错误代码500,没有任何消息

在API控制台上启用Google Play游戏管理、Google Play游戏服务、Google+API

而且,Android应用程序使用这个排行榜是正确的

我能做些什么来解决这个问题?

请求代码(PHP)

错误occours

    Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/games/v1/leaderboards: (500) {
     "error": {
      "code": 500,
      "message": null
     }
    }
另外,它是一个简单的查询类图书API,返回正确的结果没有错误

    $service = new Google_Service_Books($client);
    $optParams = array('filter' => 'free-ebooks');
    $results = $service->volumes->listVolumes('Korea', $optParams);
    var_dump($results) ;
告诉我你的任何建议。

谢谢您的帮助。:)

    $service = new Google_Service_Books($client);
    $optParams = array('filter' => 'free-ebooks');
    $results = $service->volumes->listVolumes('Korea', $optParams);
    var_dump($results) ;