我必须使用 Google APIlity 客户端(通过 v13)来访问帐户信息。如果我正在运行我编写的脚本并在命令行中使用 CTRL+C 将其终止,那么当我尝试使用以下方式访问 API 时会出现错误:
$apilityUser->getManagersClientAccounts()
有任何想法吗?
require_once('apility/apility.php');
$apilityUser = new APIlityUser(
$email,
$password,
$client_email,
$developer_token,
$application_token
);
# get all of the accounts (IT DIES HERE)
if(!$emailAccounts = $apilityUser->getManagersClientAccounts()){
fwrite($STDERR, '** ERROR ** There was an error while trying to connect to the partner!'."\n");
fclose($STDERR);
exit;
}