hostingbe/api-client-certificatemanager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hostingbe/api-client-certificatemanager

最新稳定版本:v1.0.1

Composer 安装命令:

composer require hostingbe/api-client-certificatemanager

包简介

php API REST client to connect to CertificateManager.net API, including logging and retry functionality. CertificateManager supplies you with more than 100 certificates and SSL tools to offer to your clients

README 文档

README

HostingBE's CertificateManager API has many options for retrieving certificate data and create or renew certificates via your CertificateManager account. More options are being added all the time. This API is using the modern namespacing and you can easily install with the command below.

Installing this API

composer require hostingbe/api-client-certificatemanager

Using the API for the first time To use it you need an account with CertificateManager, create it here.

When you are logged in, click on API settings and enter the IP address where the API requests come from (whitelist) After saving you will receive a username and password which you need when using this API.

To connect to the API you need at least the following lines

use HostingBE\APIClientCertificateManager\CertificateManager;
use HostingBE\APIClientCertificateManager\Logger\APILogger;

$logger = (new APILogger)->create('test-api-certificatemanager');
$api = new CertificateManager($logger);
$response = $api->login('username','password');

You now have an object with your JWT token in response.

Below are some commands that you can execute with this API.

Get the status from the API server

$response = $api->common('GET','/status']);

Edit contact via API

$response = $api->common('POST','/contact/edit/7/QeTweis0Is9p2MimQF1HHts4emVrhEN1/',['firstname' => 'firstname','lastname' => 'lastname',etc ..]);

API commands available

  • ping
  • get status API
  • list contacts
  • add contact
  • edit contact

Documentation

Read more about the possibilities of this API on the documentation page of CertificateManager

统计信息

  • 总下载量: 54
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-10