PHP code example of mysticzap / ti-net-clink

1. Go to this page and download the library: Download mysticzap/ti-net-clink library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mysticzap / ti-net-clink example snippets


$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);