Initial commit

This commit is contained in:
2022-01-18 17:14:29 +01:00
commit 320a153918
18 changed files with 622 additions and 0 deletions

30
src/Emails.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
namespace Envoyr\Froxlor;
class Emails
{
public Customer $customer;
public function __construct(Customer $customer)
{
$this->customer = $customer;
}
public function create(string $email_part, string $domain, string $description = null): array
{
return $this->customer->server->request('Emails.add', [
'loginname' => $this->customer->loginname,
'email_part' => $email_part,
'domain' => $domain,
'description' => $description,
]);
}
public function list(): array
{
return $this->customer->server->request('Emails.listing', [
'loginname' => $this->customer->loginname,
]);
}
}