//在MiaoxinSmsClient.java 类里面最上面的三个参数
private static final String account = "账号"; //你的短信子账号App_ID(非登陆账号)
private static final String secret = "密码"; //你的短信子账号的App_SECRET 密匙(非登陆密码)
private static final String server = "http://www.51miaoxin.com";
//在MiaoxinSmsClient.java 类里面最上面的三个参数
private static final String account = "账号"; //你的短信子账号App_ID(非登陆账号)
private static final String secret = "密码"; //你的短信子账号的App_SECRET 密匙(非登陆密码)
private static final String server = "http://www.51miaoxin.com";
MiaoxinClient.class.php 类里面最上面的三个参数
private $account = "账号"; //你的短信子账号App_ID(非登陆账号)
private $password = "密码"; //你的短信子账号的App_SECRET 密匙(非登陆密码)
private $server = 'http://www.51miaoxin.com';
#!/bin/bash
#您的短信子账号 App_ID
account="App_ID"
#您的短信子账号 的app_SECRET
secret="app_SECRET"
server="http://www.51miaoxin.com"
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String content = "【秒信】自定义变量接口发送短信"; //发送的内容
String ref = "ref"; //ref
String ext = "100"; //扩展码号
String result = client.send(mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String content = "【秒信】自定义变量接口发送短信"; //发送的内容
String ref = "ref"; //ref
String ext = "100"; //扩展码号
String result = client.send(mobile, content, ref, ext);
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$mobiles = ‘18600070111’;
$content = ’【秒信】自定义变量接口发送短信‘;
$ref = 'ref';
$ext = 100;
$res = $client->send($mobiles, $content, $ref, $ext);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070001"
#设置您要发送的内容
content="【秒信】您的验证码是1234,如非本人操作,请忽略。"
echo '开始发送自定义内容短信'
curl -X POST --data "$baseParam&mobiles=$mobile&content=$content" "$server/sms/send"
echo ''
echo '结束短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile =
String mobile = "18600070111,18600070222,18600070333"; //接受短信的手机号
String content = "【秒信】批量发送单条内容的短信"; //发送的内容
String ref = "ref"; //ref
String ext = "103"; //扩展码号
String result = client.send(mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile =
String mobile = "18600070111,18600070222,18600070333"; //接受短信的手机号
String content = "【秒信】批量发送单条内容的短信"; //发送的内容
String ref = "ref"; //ref
String ext = "103"; //扩展码号
String result = client.send(mobile, content, ref, ext);
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$mobiles = ‘18600070111,18600070222,18600070333’; //接受短信的手机号
$content = ’【秒信】自定义变量接口发送短信‘; //发送的内容
$ref = 'ref'; //ref
$ext = 100; //扩展码号
$res = $client->send($mobiles, $content, $ref, $ext);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070001,18600070002,18600070003"
#设置您要发送的内容
content="【秒信】批量发送单条内容的短信"
echo '开始发送自定义内容短信'
curl -X POST --data "$baseParam&mobiles=$mobile&content=$content" "$server/sms/send"
echo ''
echo '结束短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content1 = "【秒信】批量发送自定义多内容- 1"; //发送的内容
String content2 = "【秒信】批量发送自定义多内容- 2"; //发送的内容
String content3 = "【秒信】批量发送自定义多内容- 3"; //发送的内容
String split = "|||"; //多个内容之间的分隔符
String content = URLEncoder.encode(content1, "UTF-8") + split + URLEncoder.encode(content2, "UTF-8") + split + URLEncoder
.encode(content3, "UTF-8");
String finalContent = URLEncoder.encode(content, "UTF-8");
String ref = "ref"; //ref
String ext = "102"; //扩展码号
String result = client.send(mobile, finalContent, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content1 = "【秒信】批量发送自定义多内容- 1"; //发送的内容
String content2 = "【秒信】批量发送自定义多内容- 2"; //发送的内容
String content3 = "【秒信】批量发送自定义多内容- 3"; //发送的内容
String split = "|||"; //多个内容之间的分隔符
String content = URLEncoder.encode(content1, "UTF-8") + split + URLEncoder.encode(content2, "UTF-8") + split + URLEncoder
.encode(content3, "UTF-8");
String finalContent = URLEncoder.encode(content, "UTF-8");
String ref = "ref"; //ref
String ext = "102"; //扩展码号
String result = client.send(mobile, finalContent, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String signatureId = "201803180005000182"; //固定签名ID
String content = "单条发送单内容固定签名短信"; //发送的内容
String ref = "ref"; //ref
String ext = "104"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String signatureId = "201803180005000182"; //固定签名ID
String content = "单条发送单内容固定签名短信"; //发送的内容
String ref = "ref"; //ref
String ext = "104"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$signatureId = '201803180005000182';
$mobiles = ‘18600070111’;
$content = ’单条发送单内容固定签名短信‘;
$ref = 'ref';
$ext = 104;
$res = $client->sendFixedSignature($signatureId, $mobiles, $content, $ref, $ext);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070000"
#设置您要发送的内容
content="单条发送单内容固定签名短信"
signatureId="201803180005000182"
echo '开始发送固定签名短信'
curl -X POST --data "$baseParam&mobiles=$mobile&content=$content2&signatureId=$signatureId" "$server/sms/sendFixedSignature"
echo ''
echo '结束短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String signatureId = "201803180005000182"; //固定签名ID
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content = "单内容,批量发送固定签名发送"; //发送的内容
String ref = "ref"; //ref
String ext = "105"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String signatureId = "201803180005000182"; //固定签名ID
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content = "单内容,批量发送固定签名发送"; //发送的内容
String ref = "ref"; //ref
String ext = "105"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$signatureId = '201803180005000182';
$mobiles = ‘18600070001,18600070002,18600070003‘; //接受短信的手机号
$content = ’单内容,批量发送固定签名发送‘;
$ref = 'ref';
$ext = 105;
$res = $client->sendFixedSignature($signatureId, $mobiles, $content, $ref, $ext);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070001,18600070002,18600070003"
#设置您要发送的内容
content="单内容,批量发送固定签名发送"
signatureId="201803180005000182"
echo '开始发送固定签名短信'
curl -X POST --data "$baseParam&mobiles=$mobile&content=$content2&signatureId=$signatureId" "$server/sms/sendFixedSignature"
echo ''
echo '结束短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String signatureId = "201803140005000032"; //固定签名ID
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content1 = "多内容批量发送固定签名短信-内容1"; //发送的内容
String content2 = "多内容批量发送固定签名短信-内容2"; //发送的内容
String content3 = "多内容批量发送固定签名短信-内容3"; //发送的内容
String split = "|||"; //多个内容之间的分隔符
String content = URLEncoder.encode(content1, "UTF-8") + split + URLEncoder.encode(content2, "UTF-8") + split + URLEncoder
.encode(content3, "UTF-8");
String ref = "ref"; //ref
String ext = "104"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String signatureId = "201803140005000032"; //固定签名ID
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号
String content1 = "多内容批量发送固定签名短信-内容1"; //发送的内容
String content2 = "多内容批量发送固定签名短信-内容2"; //发送的内容
String content3 = "多内容批量发送固定签名短信-内容3"; //发送的内容
String split = "|||"; //多个内容之间的分隔符
String content = URLEncoder.encode(content1, "UTF-8") + split + URLEncoder.encode(content2, "UTF-8") + split + URLEncoder
.encode(content3, "UTF-8");
String ref = "ref"; //ref
String ext = "104"; //扩展码号
String result = client.sendFixedSignature(signatureId, mobile, content, ref, ext);
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String templateId = "201804130005001130"; //参数模板
String ref = "ref"; //ref
String ext = "106"; //扩展码号
//变量数量要跟申报的模板中的变量数量一致
String result = client.sendTemplateParamd(mobile, templateId, ref, ext, "变量1", "变量2", "变量3333");
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070000"; //接受短信的手机号
String templateId = "201804130005001130"; //参数模板
String ref = "ref"; //ref
String ext = "106"; //扩展码号
//变量数量要跟申报的模板中的变量数量一致
String result = client.sendTemplateParamd(mobile, templateId, ref, ext, "变量1", "变量2", "变量3333");
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$templateId = '201804220005001389';
$mobiles = ‘18600070111’;
$ref = 'ref';
$ext = 100;
$params = ['变量1','变量2','变量3'];
$res = $client->sendTemplateParamd($mobiles, $templateId, $ref, $ext, $params);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070000"
templateId="201804220005001389"
param1="参数1"
param2="参数2"
echo ''
echo '开始发送固定签名短信'
curl -X POST --data "$baseParam&mobiles=$mobile&templateId=$templateId¶m1=$param1¶m2=$param2" "$server/sms/sendTemplateParamd"
echo ''
echo '结束短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号 String templateId = "201804220005001389"; //参数模板
String ref = "ref"; //ref
String ext = "106"; //扩展码号
//变量数量要跟申报的模板中的变量数量一致
String result = client.sendTemplateParamd(mobile, templateId, ref, ext, "变量1", "变量2", "变量3333");
LOGGER.info("{}", result);
MiaoxinSmsClient client = new MiaoxinSmsClient();
String mobile = "18600070001,18600070002,18600070003"; //接受短信的手机号 String templateId = "201804220005001389"; //参数模板
String ref = "ref"; //ref
String ext = "106"; //扩展码号
//变量数量要跟申报的模板中的变量数量一致
String result = client.sendTemplateParamd(mobile, templateId, ref, ext, "变量1", "变量2", "变量3333");
LOGGER.info("{}", result);
$client = new MiaoxinSmsClient();
$templateId = '201804220005001389';
$mobiles = ‘18600070001,18600070002,18600070003’; //接受短信的手机号
$ref = 'ref';
$ext = 100;
$params = ['变量1','变量2','变量3'];
$res = $client->sendTemplateParamd($mobiles, $templateId, $ref, $ext, $params);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
#修改为您要发送的手机号
mobile="18600070000,18600070001,18600070002,18600070003"
templateId="201804220005001389"
param1="参数1"
param2="参数2"
echo ''
echo '开始发送模板短信'
curl -X POST --data "$baseParam&mobiles=$mobile&templateId=$templateId¶m1=$param1¶m2=$param2" "$server/sms/sendTemplateParamd"
echo ''
echo '结束模板短信发送'
MiaoxinSmsClient client = new MiaoxinSmsClient();
String orderId = "180426184237772933"; //查询的订单
String result = client.check( orderId );
MiaoxinSmsClient client = new MiaoxinSmsClient();
String orderId = "180426184237772933"; //查询的订单
String result = client.check( orderId );
$client = new MiaoxinSmsClient();
$orderId = '180426184237772933'; //查询的订单
$res = $client->check($orderId);
var_dump($res);
#!/bin/bash
account="您的短信子账号"
secret="您的短信子账号的密码"
server="http://www.51miaoxin.com"
ts=`date "+%Y%m%d%H%M%S"`
secretContent="account=$apiID&ts=$ts&secret=$apiKEY"
token=`echo -n $secretContent |sha1sum | awk '{print $1}'`
baseParam="account=$apiID&token=$token&ts=$ts"
orderId="180426184237772933"
echo ''
echo '开始检测订单发送状况'
curl -X POST --data "$baseParam&orderIds=$orderId" "$server/sms/check"
echo ''
echo '订单检测完成'