darkridder/mts-communicator-php-api

PHP 对 MTS Communicator M2M API 的封装

0.0.2 2021-07-30 06:03 UTC

This package is auto-updated.

Last update: 2024-09-29 05:09:29 UTC


README

PHP 对 MTS Communicator M2M API 的封装 https://mcommunicator.ru/M2M/m2m_api.asmx

安装

安装此扩展的首选方式是通过 composer.

运行以下命令之一

php composer.phar require darkridder/mts-communicator-php-api "*"

"darkridder/mts-communicator-php-api": "*"

将以下内容添加到您的 composer.json 文件的 require 部分。

使用方法

$mts = new \MtsCommunicator\Client('login', 'password');
$sender = new \MtsCommunicator\Send($mts);
$result1 = $sender->message('Message', "71010000000");
$result2 = $sender->messages('Message', ['71010000000', '71010000001']);

许可证

Apache 2.0