互亿无线 · 文档中心

短信营销 - 代码示例


PHP对接短信营销接口DEMO示例
本文为您提供了php语言版本的短信营销接口对接DEMO示例

短信营销接口文档 点击下载

短信营销接口接入指南 点击访问

// 接口类型:互亿无线营销短信批量发送DEMO
// 账户注册:请通过该地址开通账户 http://user.ihuyi.com/
//发送短信测试

//打开php.ini文件中的 always_populate_raw_post_data = -1;
header("Content-type:text/html; charset=UTF-8");

require 'ihuyi/sms.class.php';
$config = require 'ihuyi/config.php';

$sms = new sms($config);

$mobile = array('135xxxxxxxx','135xxxxxxxx');
$content = '您好,短信内容,回T退订';
$product_id = 1001;
$sign_name = '互亿无线';

//发送短信
$res = $sms->send($mobile, $content, $product_id, $sign_name);
$sms->log('send', $res);
print_r($res);

现在注册,即享新用户礼包!

在线咨询
电话咨询
服务热线:
4008 808 898



验证码已发送到您的手机,请查收!

填写验证码后,点击“开通体验账户”自动开通体验账户。

收不到短信验证码?
×