setAuthConfig()不适用于google calander身份验证


setAuthConfig() not working for google calander auth

我正在尝试使用setAuthConfig()进行身份验证。但我收到了一个错误。

致命错误:未捕获异常"Google_exception",消息为"无效的客户端机密JSON文件"在/var/www/myinvitebig.com/vendor/google/apiclient/src/google/Client.php中:171堆栈跟踪:

0/var/www/myinvitebig.com/calsync.php(57):Google_Client->setAuthConfig('cci.json')

1{main}

171
上的/var/www/myinvitebig.com/vendor/google/apiclient/src/google/Client.php中抛出

我的cli.json文件是正确的。这是我的密码。请告诉我该怎么办?

$client->setAuthConfig('cli.json');
$client->refreshToken($rToken);
$refreshToken = $client->getAccessToken();
echo "==>".$refreshToken;

setAuthConfig("粘贴JSON文件的代码")