Getting started with the API is super easy. #
Here is an example of creating a new user
POST /api/create_user
Accepts: email
Returns: [
200 - OK (Good, email with credentials are sent to user)
400 - Bad (Failed)
]
When a request is sent to the api endpoint, it returns back to you, so you can also see what happens.
More of this will be available in the next pages.
Altering the client code. #
We allow our resellers to alter the code so it can be to their liking, however we do not provide support for any issues as you are agreeing to take the risk and possible damage to your panel.
Altering/creating new features is super simple.
There are multiple built-in classes that powers the software.
A list of examples below is some of the currently available abilities.
Email Engine #
<?php
$EmailEngine = new EmailEngine();
$Email->Send("client-email@domain.com", "A message here!");
?>
You can also use an email templates located in /resources/email-templates/
We will show you an example of how this works for the template new-user.e-template.php
<?php
// This will utilise the FetchTemplate method, replace all specified values and then return and send.
$EmailEngine = new EmailEngine();
$data = [
"client_email" => "client-email@domain.com",
"client_message" => "A new client message."
];
$Email_Body = $EmailEngine->FetchTemplate("new-user", $data);
$Email->Send("client-email@domain.com", $Email_Body);
?>
Here is the new-user template example usage. The template is written in HTML, any css can be used here as long as it is included into the template file (TailWindCSS Playground is fine).
Example Variable passed in <?= $client_email ?>
Full example:
<div class="content">
<p>Your message: <?= $client_message?>
</p>
</div>