kyasms/php-api
最新稳定版本:v1.3.1
Composer 安装命令:
composer require kyasms/php-api
包简介
Kyasms api send sms
README 文档
README
What is it?
KYA SMS a platform for sending marketing and banking sms all over the world. With our api, send your first message today. Open an account here
. Installation
It is recommended to use composer to install the library.
$ composer require kyasms/php-api
You can also use any other PSR-4 compliant autoloader.
. Send sms
require_once __DIR__ . '/vendor/autoload.php'; use Kyasms\PhpApi\kyasmsClient; $kyasms = new kyasmsClient(); // set apikey and clientid $kyasms->setClient('APIKEY', 'CLIENTID'); // Set sms data $smsData = array( 'from' => 'KYA SMS', 'to' =>'22966413718,22998039720', 'type' => 0, 'message' => 'api sms' ); $response = $kyasms->sendSms($smsData); echo $response;
You will receive a response :
{
"status": "ACT",
"submit": 2,
"fail": 0,
"success": 2,
"cost": 24,
"currency": "XOF",
"sms_part": 1,
"senderId": "KYA SMS",
"message": "api sms",
"array": {
"msgId": "2301120114271190067,2301120114271190068",
"phones": "22961498781,22998039720"
}
}
统计信息
- 总下载量: 791
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-17