我試着去檢索域中的所有用戶,但我得到一個錯誤..谷歌的cPanel和Zend/PHP
下載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 = '[email protected]';
$password = 'password';
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password, Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
echo '<pre>';
print_r($client->retrieveAllUsers());
echo '</pre>';
的cPanel標籤不被用於「谷歌的cPanel」,只是以供將來參考。 – tubaguy50035 2012-07-26 13:42:09