codeages / escloud-php-sdk
There is no license information available for the latest version (v1.3.2) of this package.
ESCloud PHP SDK
v1.3.2
2024-07-02 06:30 UTC
Requires
- php: >=7.1.0
- ext-curl: *
- ext-json: *
- firebase/php-jwt: ^6
- paragonie/random_compat: >=2
- psr/log: ^1.0
Requires (Dev)
- monolog/monolog: ^1.18
- phpunit/phpunit: ^7 || ^8 || ^9
- dev-main
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.8
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.9
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- dev-release/v1.3.x
- dev-release/v1.2.x
- dev-feature/add-changelog
- dev-feature/add-scrm-sdk
- dev-bugfix/fix-search-token
- dev-feature/add-search-service
This package is auto-updated.
Last update: 2024-11-02 07:16:38 UTC
README
安装
composer require codeages/escloud-php-sdk
使用说明
$sdk = new \ESCloud\SDK\ESCloudSDK(array( 'access_key' => 'your_access_key', // 必需 'secret_key' => 'your_secret_key', // 必需 'service' => array( // 可选,各个服务的配置项 'sms' => array( 'host' => 'sms-service.test.qiqiuyun.net', // 每个服务,都有自己的必需的配置项,如需调用则必需配置该服务的配置项 ) ) )); // 获取短信服务 $sdk->getSmsService(); // 获取云资源播放服务 $sdk->getPlayService(); // 获取分销服务 $sdk->getDrpService();
我们为网校接入提供了测试环境,用于调试。通过设置host
配置项,即可使用测试环境的服务,例如短信测试服务:
$sdk = new \ESCloud\SDK\ESCloudSDK(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 。