andre 3 سال پیش
والد
کامیت
81d4b72851
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      api/test.php

+ 12 - 0
api/test.php

@@ -132,3 +132,15 @@ if($action == 'gqu')
     }
 	print_r($r);
 }
+
+// Get AutoSSL Informations
+if($action == 'gas')
+{
+	$r = $cwp7->getAutoSSL($args['account_name']);
+	if(isset($r['error_msg'])) {
+        echo 'Error : could not fetch AutoSSL information of '. $args['account_name'] . ' :-(' . PHP_EOL;
+	} else {
+		echo 'OK : got the AutoSSL infos for account ' . $args['account_name'] . ' :-)' . PHP_EOL;
+    }
+	print_r($r);
+}