andre 3 лет назад
Родитель
Сommit
10ee44ef8c
1 измененных файлов с 13 добавлено и 1 удалено
  1. 13 1
      api/test.php

+ 13 - 1
api/test.php

@@ -116,7 +116,19 @@ if($action == 'gap')
 	if(isset($r['error_msg'])) {
         echo 'Error : could not fetch information of packages :-(' . PHP_EOL;
 	} else {
-		echo 'OK : got the infos of packages :-)' . PHP_EOL;
+		echo 'OK : got the infos of ' . count($r['msj']) . 'packages :-)' . PHP_EOL;
+    }
+	print_r($r);
+}
+
+// Get Quota Informations
+if($action == 'gqu')
+{
+	$r = $cwp7->getAccount($args['account_name']);
+	if(isset($r['error_msg'])) {
+        echo 'Error : could not fetch quota information of '. $args['account_name'] . ' :-(' . PHP_EOL;
+	} else {
+		echo 'OK : got the quota infos for account ' . $args['account_name'] . ' :-)' . PHP_EOL;
     }
 	print_r($r);
 }