我试图从域中检索所有用户,但出现错误..
已下载 Zend 库
文件:
https://developers.google.com/google-apps/provisioning/?hl=da#retrieving_user_accounts
得到这个错误:
Fatal error: Call to undefined method Zend_Gdata_HttpClient::retrieveAllUsers()
脚本:
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Gapps');
$email = 'alias@mail.com';
$password = 'password';
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password, Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
echo '<pre>';
print_r($client->retrieveAllUsers());
echo '</pre>';