test.php 389 B

123456789101112131415
  1. <?php
  2. require_once("api/Zm/Auth.php");
  3. require_once("api/Zm/Account.php");
  4. $auth = new Zm_Auth('192.168.16.225', 'admin@thurdata.local', 'Technics2312');
  5. $l = $auth->login();
  6. $accountManager = new Zm_Account($auth);
  7. $r = $accountManager->getAccountOptions('test1@thurdata.local');
  8. if(is_a($r, "Exception")) {
  9. print_exception($r);
  10. } else {
  11. print_var($r, "Get Account Options");
  12. }