0

我必须使用 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;
}
4

1 回答 1

0

It turns out when the script is stopped, if it is caching the WSDL, it leaves the cached WSDL in the cache folder. When I remove the cached WSDL, it allows me to connect again. I finally discovered the resolution and figured I would post it here in case someone else runs into the same problem.

于 2010-08-25T15:09:18.937 回答