cyberfusion/proxmox-mail-gateway
最新稳定版本:v2.1.0
Composer 安装命令:
composer require cyberfusion/proxmox-mail-gateway
包简介
Library for Proxmox Mail Gateway.
README 文档
README
Library for Proxmox Mail Gateway.
Proxmox Mail Gateway API documentation: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html
Install
Composer
Run the following command to install the package from Packagist:
composer require cyberfusion/proxmox-mail-gateway
Usage
Example
use Cyberfusion\ProxmoxMGW\Client; use Cyberfusion\ProxmoxMGW\Endpoints\Config\DkimEndpoint; use Cyberfusion\ProxmoxMGW\Exceptions\AuthenticationException; use Cyberfusion\ProxmoxMGW\Models\DkimDomainData; use Cyberfusion\ProxmoxMGW\Requests\DkimGetRequest; try { $client = new Client('pmgtest.cyberfusion.nl'); $client->authenticate('apiuser', 'Super secret password.'); } catch (AuthenticationException $e) { // Handle authentication error } $dkimEndpoint = new DkimEndpoint($client); $result = $dkimEndpoint->get(new DkimGetRequest('example.com')); if ($result->failed()) { // Handle error } /** @var DkimDomainData $dkim */ $dkim = $result->getData('dkim'); // $dkim->domain -> example.com
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-21