unoeuro/api-php 问题修复 & 功能扩展

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

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

unoeuro/api-php

最新稳定版本:v1.0.1

Composer 安装命令:

composer require unoeuro/api-php

包简介

Documentation for this API can be found on https://www.simply.com/docs/api/

README 文档

README

Documentation for this API can be found on https://www.simply.com/docs/api/

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/simplycom/api-php.git"
    }
  ],
  "require": {
    "simplycom/api-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/SimplyCom-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new SimplyCom\Api\BillingApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->getInvoices();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingApi->getInvoices: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://api.simply.com

Class Method HTTP request Description
BillingApi getInvoices GET /2/my/invoices/ Retrieve list of invoices
DnszoneApi addDnsRecord POST /2/my/products/{object}/dns/records/ Add new DNS record to a product DNS zone
DnszoneApi ddnsHelper GET /2/ddns/ Dynamic DNS helper endpoint
DnszoneApi deleteDnsRecord DELETE /2/my/products/{object}/dns/records/{record_id}/ Remove DNS record from a product DNS zone
DnszoneApi dyndns GET /2/dyndns/ DynDNS protocol-compatible endpoint
DnszoneApi getDnsRecords GET /2/my/products/{object}/dns/records/ Retrieve all DNS records for a product
DnszoneApi getDnsZone GET /2/my/products/{object}/dns/ Retrieve DNS zone metadata
DnszoneApi reloadDnsZone POST /2/my/products/{object}/dns/reload/ Force-reload a DNS zone
DnszoneApi updateDnsRecord PUT /2/my/products/{object}/dns/records/{record_id}/ Update a DNS record in a product DNS zone
DomainsApi domaincheck GET /2/my/domaincheck/{domain}/ Check domain availability
MailApi addMailAccount POST /2/my/products/{object}/mail/accounts/ Add new mail account to a product
OrderApi orderDnsService POST /2/my/order/dnsservice/ Order a DNS service with optional domain registration/transfer
ProductsApi getProductList GET /2/my/products/ Retrieve list of products
RegistryApi addDnssecKey POST /2/my/products/{object}/registry/dnssec/ Add a DNSSEC key to a domain
RegistryApi getDnssecKeys GET /2/my/products/{object}/registry/dnssec/ Retrieve DNSSEC keys registered on a domain
RegistryApi getNameservers GET /2/my/products/{object}/registry/nameservers/ Retrieve the current nameservers of a domain
RegistryApi removeDnssec DELETE /2/my/products/{object}/registry/dnssec/ Remove all DNSSEC keys from a domain
RegistryApi setNameservers PUT /2/my/products/{object}/registry/nameservers/ Set the nameservers of a domain at the registry
ServerstatusApi getServerStatusMessages GET /2/my/serverstatus/messages/ Retrieve server status messages

Models

Authorization

basicAuth

  • Type: HTTP basic authentication

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2.3.0
    • Generator version: 7.22.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PhpNextgenClientCodegen

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-09-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固