codeages / qiqiuyun-php-sdk
QiQiuYun PHP SDK
Installs: 1 391
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 18
Open Issues: 3
Requires
- php: >=5.3.3
- ext-curl: *
- psr/log: ^1.0
Requires (Dev)
- monolog/monolog: ^1.18
- phpunit/phpunit: ^4 || ^5 || ^6
- dev-master
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.27
- v0.2.26
- v0.2.25
- v0.2.24
- v0.2.23
- v0.2.22
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-feature/s2b2c-service
- dev-stable/0.3.x
- dev-feature/add-site-trace-service
This package is auto-updated.
Last update: 2024-12-21 14:42:57 UTC
README
安装
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 。