websupport / iszt-api
官方 .hu 域名注册的简单 API 封装器
v1.0.2
2015-12-02 14:15 UTC
Requires
- php: ~5.3
This package is not auto-updated.
Last update: 2024-09-14 18:27:58 UTC
README
iszt.hu(官方匈牙利域名注册)的基本 API 连接器。
安装
ISZT api 是 composer 库,因此您可以使用以下命令安装最新版本:
php composer.phar require websupport/iszt-api
使用方法
$api = new Websupport\Iszt\Connector('username', 'password'); var_dump($api->domainInfo('domain.hu'));
可以通过构造函数的第三个(数组)参数传递一些额外的配置选项
- url - api 地址(也可以参考类的常量
API_URL_LIVE
和API_URL_TRYOUT
) - keyPath - 存储 gnupg 密钥的位置
- keyId - 用于签名请求的 gnupg 密钥
- passphrase - 该密钥的密码
- proxy - 用于连接 API 的代理 URL
- proxyAuth - 代理认证数据
"username:password"
- timeout - 连接请求的默认超时时间(默认为 30 秒)
- nsServer - 要使用的 NS 服务器
$api = new Websupport\Iszt\Connector('username', 'password', array( 'url' => Websupport\Iszt\Connector::API_URL_TRYOUT, 'nsServer' => 'ns1.websupport.sk', ));