2017 © Pedro Peláez
 

library mwsms-client

梦网平台短信接口

image

sinri/mwsms-client

梦网平台短信接口

  • Wednesday, March 29, 2017
  • by sinri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

mwsms-client

梦网平台短信接口,对应文档3.4,采用HTTP POST方式实现。, (*1)

Usage

// 由autoload控制,也可以自行引用
require_once 'MWSMSClient.php';
// 建立client
$params=[
    "api"=>'http://test.com:9006/MWGate/wmgw.asmx',
    "user"=>'U',
    "password"=>'P',
];
$client = new \sinri\mwsmsclient\MWSMSClient($params);

//群发短信
$result=$client->doMongateSendSubmit(['13000000000','18000000000'],"同事您好,感谢您对此次测试的配合。123456");
var_export($result);
/*
array (
  'done' => true, //是不是有错
  'request_id' => '1490775230135809251990',//发送方 MsgId
  'data' => '4521856470400363903',//成功,接收方 SmsId 或者失败,错误信息
)
*/

//查还有几条能发
$result=$client->doMongateQueryBalance();
var_export($result);

//查询上行
$result=$client->doMongateGetDeliverForSubmit();
var_export($result);

//查询发送状况
$result=$client->doMongateGetDeliverForDeliver();
var_export($result);

虚无……, (*2)

The Versions

29/03 2017

dev-master

9999999-dev

梦网平台短信接口

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

29/03 2017

0.1

0.1.0.0

梦网平台短信接口

  Sources   Download

MIT

The Requires

  • php >=5.4.0