|
@@ -158,7 +158,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
|
*/
|
|
*/
|
|
|
- public function disable($domain,$username) {
|
|
|
|
|
|
|
+ public function disable($username, $domain) {
|
|
|
$url = "$this->apiUrl/disable/$username/$domain";
|
|
$url = "$this->apiUrl/disable/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -172,7 +172,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
|
*/
|
|
*/
|
|
|
- public function create($domain,$username, $adminName, $adminPassword) {
|
|
|
|
|
|
|
+ public function create($username, $domain, $adminName, $adminPassword) {
|
|
|
$url = "$this->apiUrl/create/$username/$domain";
|
|
$url = "$this->apiUrl/create/$username/$domain";
|
|
|
$data = [
|
|
$data = [
|
|
|
'admin_name' => $adminName,
|
|
'admin_name' => $adminName,
|
|
@@ -190,7 +190,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
|
*/
|
|
*/
|
|
|
- public function terminate($domain,$username) {
|
|
|
|
|
|
|
+ public function terminate($username, $domain) {
|
|
|
$url = "$this->apiUrl/terminate/$username/$domain";
|
|
$url = "$this->apiUrl/terminate/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -204,7 +204,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['isenabled' => 'YES']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['isenabled' => 'YES']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['isenabled' => 'NO']];
|
|
* or a json with ['status' => $httpCode,'response' => ['isenabled' => 'NO']];
|
|
|
*/
|
|
*/
|
|
|
- public function enable($domain,$username) {
|
|
|
|
|
|
|
+ public function enable($username, $domain) {
|
|
|
$url = "$this->apiUrl/enable/$username/$domain";
|
|
$url = "$this->apiUrl/enable/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -219,7 +219,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
|
*/
|
|
*/
|
|
|
- public function isenabled($domain,$username) {
|
|
|
|
|
|
|
+ public function isenabled($username, $domain) {
|
|
|
$url = "$this->apiUrl/isenabled/$username/$domain";
|
|
$url = "$this->apiUrl/isenabled/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -232,7 +232,7 @@ class ApiClient {
|
|
|
*
|
|
*
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['ssl_expiry' => 'Datum des Ablaufs des Zertifikats', 'ssl_remaining' => 'Anzahl der Tage bis zum Ablauf des Zertifikats']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['ssl_expiry' => 'Datum des Ablaufs des Zertifikats', 'ssl_remaining' => 'Anzahl der Tage bis zum Ablauf des Zertifikats']];
|
|
|
*/
|
|
*/
|
|
|
- public function getSSLDays($domain,$username) {
|
|
|
|
|
|
|
+ public function getSSLDays($username, $domain) {
|
|
|
$url = "$this->apiUrl/getssldays/$username/$domain";
|
|
$url = "$this->apiUrl/getssldays/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -254,7 +254,7 @@ class ApiClient {
|
|
|
* ];
|
|
* ];
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
- public function listbackups($domain,$username) {
|
|
|
|
|
|
|
+ public function listbackups($username, $domain) {
|
|
|
$url = "$this->apiUrl/listbackups/$username/$domain";
|
|
$url = "$this->apiUrl/listbackups/$username/$domain";
|
|
|
return $this->sendRequest('GET', $url);
|
|
return $this->sendRequest('GET', $url);
|
|
|
}
|
|
}
|
|
@@ -271,7 +271,7 @@ class ApiClient {
|
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
* @return a json with ['status' => $httpCode,'response' => ['success' => 'Text']];
|
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
* or a json with ['status' => $httpCode,'response' => ['error' => 'Error-Description']];
|
|
|
*/
|
|
*/
|
|
|
- public function restorebackup($domain,$username,$backupDate) {
|
|
|
|
|
|
|
+ public function restorebackup($username, $domain, $backupDate) {
|
|
|
$url = "$this->apiUrl/restorebackup/$username/$domain";
|
|
$url = "$this->apiUrl/restorebackup/$username/$domain";
|
|
|
$data = [
|
|
$data = [
|
|
|
'backup_date' => $backupDate
|
|
'backup_date' => $backupDate
|