codeages/qiqiuyun-php-sdk

There is no license information available for the latest version (v1.0.3) of this package.

QiQiuYun PHP SDK

v1.0.3 2020-06-30 11:37 UTC

README

Build Status

安装

composer require codeages/qiqiuyun-php-sdk

使用说明

$sdk = new \QiQiuYun\SDK\QiQiuYunSDK(array(
    'access_key' => 'your_access_key', // 必需
    'secret_key' => 'your_secret_key', // 必需
    'service' => array(     // 可选,各个服务的配置项
        'xapi' => array(    // 每个服务,都有自己的必需的配置项,如需调用则必需配置该服务的配置项
            'school_name' => '测试网校',
        )
    )
));

// 获取短信服务
$sdk->getSmsService();

// 获取云资源播放服务
$sdk->getPlayService();

// 获取XAPI服务
$sdk->getXAPIService();

// 获取分销服务
$sdk->getDrpService();

气球云为网校接入提供了测试环境,用于发调试。通过设置host配置项,即可使用测试环境的服务,例如短信测试服务:

$sdk = new \QiQiuYun\SDK\QiQiuYunSDK(array(
    'access_key' => 'your_access_key', 
    'secret_key' => 'your_secret_key', 
    'service' => array(
        'sms' => array(
            'host' => 'sms-service.test.qiqiuyun.net',
        )
    )
));

$sdk->getSmsService();

变更日志

CHANGELOG.md