netzfabrik / netzfabrik-php-api
NETZFABRIK API 的 PHP SDK
dev-main
2023-06-12 08:03 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-10-01 12:39:18 UTC
README
NETZFABRIK API 的 PHP 客户端库
有关更多信息,请访问 https://www.netzfabrik.com.
安装与使用
要求
PHP 7.4 及以上版本。也应与 PHP 8.0 兼容。
Composer
要通过 Composer 安装绑定,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/NETZFABRIKCOM/netzfabrik-php-api.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/netzfabrik-php/vendor/autoload.php');
入门
请按照安装过程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: JWT $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = NETZFABRIK\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new NETZFABRIK\Api\AccountApi( // 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 ); $id = 'id_example'; // string | Account identifier try { $result = $apiInstance->getAccount($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountApi->getAccount: ', $e->getMessage(), PHP_EOL; }
API 端点
所有 URI 都相对于 https://
模型
- AccessKey
- AccessKeyBucket
- AccountAccountRead
- AccountAccountReadCustomer
- AccountUserReadUserMeReadAccountMeCustomerMe
- ApiToken
- ApiTokenApiTokenCreatedResponse
- ApiTokenApiTokenReadTimestampableCreatedAtReadTimestampableUpdatedAtRead
- ApiTokenCreateApiTokenRequest
- ApplicationApplicationListServiceLevelAgreementReadApplicationTypeListCloudServerListZoneRead
- ApplicationApplicationListServiceLevelAgreementReadApplicationTypeListCloudServerListZoneReadServiceLevelAgreement
- ApplicationApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneRead
- ApplicationApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneReadCloudServer
- ApplicationApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneReadServiceLevelAgreement
- ApplicationTypeApplicationListServiceLevelAgreementReadApplicationTypeListCloudServerListZoneRead
- ApplicationTypeApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneRead
- Bill
- BillBillGraphResponse
- BillHistory
- Bucket
- Colocation
- ColocationInterconnection
- ColocationPowerFeed
- Customer
- CustomerAccountRead
- CustomerCreateCustomerRequest
- CustomerUserReadUserMeReadAccountMeCustomerMe
- DnssecInfoKeyZoneDnssec
- DomainCancelRequest
- DomainCheckDomainAvailabilityRequestDomainCheck
- DomainDomainAvailabilityResponseDomainCheck
- DomainDomainList
- DomainDomainReadHandleReadNameserverRead
- DomainDomainReadHandleReadNameserverReadAdminHandle
- DomainRegisterDomainRequest
- DomainRegistrar
- DomainRegistrarHandle
- DomainResellerDomainResellerBillingDataResponse
- DomainResellerDomainResellerRead
- DomainTransitRequest
- Handle
- HandleCreateHandleRequestHandleWrite
- HandleDomainReadHandleReadNameserverRead
- HandleHandleRead
- Interconnection
- InvoiceInvoiceList
- InvoiceInvoiceRead
- IpAddress
- IpAddressApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneRead
- IpAddressCloudServerListRegionReadTimestampableCreatedAtReadTimestampableUpdatedAtRead
- IpAddressCloudServerReadServiceLevelAgreementReadRegionReadTimestampableCreatedAtReadTimestampableUpdatedAtReadVirtualMachineTaskRead
- IpAddressPool
- IpAddressPoolIpAddressPoolCreate
- IpAddressWebspaceRead
- LoginActivity
- LoginCheckPost200Response
- LoginCheckPostRequest
- MessageTicketRead
- MessageTicketReadMaintenanceRead
- NameserverDomainReadHandleReadNameserverRead
- NetworkAttachNetworkToServerRequest
- PaymentMethodInvoiceRead
- PhoneNumber
- PleskHostWebspaceRead
- PowerFeed
- Rack
- Region
- RegionCloudServerListRegionReadTimestampableCreatedAtReadTimestampableUpdatedAtRead
- RegionCloudServerReadServiceLevelAgreementReadRegionReadTimestampableCreatedAtReadTimestampableUpdatedAtReadVirtualMachineTaskRead
- RrdDataItemRrdDataRead
- ServiceLevelAgreementApplicationListServiceLevelAgreementReadApplicationTypeListCloudServerListZoneRead
- ServiceLevelAgreementApplicationReadServiceLevelAgreementReadApplicationTypeReadCloudServerReadZoneRead
- ServiceLevelAgreementCloudServerReadServiceLevelAgreementReadRegionReadTimestampableCreatedAtReadTimestampableUpdatedAtReadVirtualMachineTaskRead
- TicketCreateTicketRequestTicketCreate
- TicketMessageMessageCreate
- TicketReplyTicketRequestMessageCreate
- TicketTicketList
- TicketTicketRead
- TicketTicketReadMaintenanceRead
- User
- UserChangePasswordRequestDefault
- UserCompleteUserRequestUserComplete
- UserCustomer
- UserPasswordRecoveryTestResponse
- UserRegisterUserRequestUserRegister
- UserRequestPasswordRecoveryRequestDefault
- 用户设置默认客户请求默认
- 用户用户我响应用户读取用户我读取账户我客户我
- 用户用户我响应用户读取用户我读取账户我客户我账户
- 用户用户我响应用户读取用户我读取账户我客户我客户
- 虚拟局域网
- 虚拟机应用程序读取服务水平协议读取应用程序类型读取云服务器读取区域读取
- 虚拟机应用程序读取服务水平协议读取应用程序类型读取云服务器读取区域读取IPv4
- 虚拟机云服务器列表区域读取时间戳创建时间读取时间戳更新时间读取
- 虚拟机云服务器列表区域读取时间戳创建时间读取时间戳更新时间读取IPv4
- 虚拟机云服务器读取服务水平协议读取区域读取时间戳创建时间读取时间戳更新时间读取虚拟机任务读取
- 虚拟机云服务器读取服务水平协议读取区域读取时间戳创建时间读取时间戳更新时间读取虚拟机任务读取IPv4
- 虚拟机云服务器读取服务水平协议读取区域读取时间戳创建时间读取时间戳更新时间读取虚拟机任务读取服务水平协议
- 虚拟机云服务器统计响应RRD数据读取
- 虚拟机任务云服务器读取服务水平协议读取区域读取时间戳创建时间读取时间戳更新时间读取虚拟机任务读取
- 网站空间创建网站空间请求网站空间创建
- 网站空间计划
- 网站空间计划网站读取
- 网站空间网站登录会话响应网站登录会话
- 网站空间网站读取
- 网站空间网站读取IPv4地址
- 网站空间网站读取IPv6地址
- 网站空间网站读取Plesk主机
- 区域DNSSEC信息区域DNSSEC
- 区域名称服务器区域列表
- 区域名称服务器区域列表区域读取
- 区域名称服务器区域读取
- 区域名称服务器区域读取区域记录读取
- 区域名称服务器区域记录读取
- 区域记录
- 区域记录输入区域创建区域记录创建
- 区域记录区域读取区域列表区域记录读取
- 区域记录区域读取区域记录读取
- 区域记录区域记录输入区域记录创建
- 区域记录区域记录读取
- 区域记录区域记录更新
- 区域记录区域更新区域记录更新
- 区域区域输入区域创建区域记录创建
- 区域区域列表
- 区域区域列表区域读取
- 区域区域读取
- 区域区域读取区域列表区域记录读取
- 区域区域读取区域记录读取
- 区域区域更新区域记录更新
授权
为API定义的认证方案
JWT
- 类型:API密钥
- API密钥参数名:授权
- 位置:HTTP头部
测试
要运行测试,使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
0.0.0
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen