|
@@ -9,6 +9,27 @@ class ApiClient {
|
|
|
$this->apiKey = $apiKey;
|
|
$this->apiKey = $apiKey;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Check accessibility to the Server
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param adminName: The Super-Admin User of the CRM System (usually the e-mail of the customer
|
|
|
|
|
+ * @param adminPassword: A self randomly generated password
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return string 'pong' on success
|
|
|
|
|
+ *
|
|
|
|
|
+ * Attention: The given parameters username, adminName and adminPassword must be
|
|
|
|
|
+ * stored locally for the Single Sign on from whcms plugin
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+ public function ping($adminName, $adminPassword) {
|
|
|
|
|
+ $url = "$this->apiUrl/ping/test/test";
|
|
|
|
|
+ $data = [
|
|
|
|
|
+ 'admin_name' => $adminName,
|
|
|
|
|
+ 'admin_password' => $adminPassword
|
|
|
|
|
+ ];
|
|
|
|
|
+ return $this->sendRequest('POST', $url, $data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Initially deploy the development site for the customer
|
|
* Initially deploy the development site for the customer
|
|
|
*
|
|
*
|