mysticzap / ti-net-clink
api ti-net clink 2.0
0.3.4
2025-02-17 02:05 UTC
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: 6.5.8
- psr/log: 1.1.4
README
使用composer加载
composer require mysticzap/ti-net-clink
注意仓库源
{ "repositories": { "packagist": { "type": "composer", "url": "https://repo.packagist.org" } } }
第三方接口调用的配置格式
$config = [ "baseUri" => '', // 接口域名 "accessKeyId" => '',// key_id, "accessKeySecret" => '', // key_secret, "log" => '', // 日志地址 "logFileNameFormat" => '',// 日志文件名格式化,日期格式:Ymd "logLevel" => 0, // 打印日志等级 "expires" => 600, //接口签名中额过期时长,单位秒,最小1秒,最大1天=86400 ] $configure = new Configure($config);// 配置类 $logger = new Logger($configure->log, $configure->logLevel, $configure->logFileNameFormat); $signature = new Signature($configure, $logger); // 签名类 // 统计接口 $tinetApi = new StatInvestigationByCno($configure, $signature, $logger); $response = $tinetApi->send($params);