20余年短信服务经验让您的业务迅速起航
联手三大运营商,直连短信通道
支持虚拟运营商号段,5秒送达
多通道运营,智能切换短信通道
保证短信发送不间断
标准通用 http 短信 api 接口
10分钟快速接入短信服务
发送状态报告实时返回
管理后台功能齐全
通过手机号码验证用户真实身份,确保用户有效性
10690 亿互通
四步即可完成对接,提供完整接口文档与多语言示例
在线注册并领取试用礼包
提交营业执照完成实名
用户中心查看 APIID/APIKEY
调用接口,测试后正式上线
HTTP / HTTPS / CMPP 短信接口,GET/POST 提交
支持 PHP / JAVA / C# / Node / Python 等开发语言
完备状态查询,支持状态接口实时推送
返回格式 JSON / XML,UTF-8 编码全天发送
http://106.ihuyi.com/webservice/sms.php?method=Submit
参数:account / password / mobile / content / format
// 登录用户中心获取 APIID 和 APIKEY $apiid = 'APIID'; $apikey = 'APIKEY'; $mobile = '13800138000'; $content = '您的验证码是:2546。请不要把验证码泄露给其他人。'; $url = 'http://106.ihuyi.com/webservice/sms.php?method=Submit'; $post = http_build_query([ 'account' => $apiid, 'password' => $apikey, 'mobile' => $mobile, 'content' => $content, 'format' => 'json', ]); $ch = curl_init($url); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => $post, CURLOPT_RETURNTRANSFER => true, ]); $resp = curl_exec($ch); curl_close($ch); print_r(json_decode($resp, true)); // 返回 code = 2 表示提交成功
import java.io.*; import java.net.*; public class SmsDemo { public static void main(String[] args) throws Exception { String apiid = "APIID"; // 用户中心获取 String apikey = "APIKEY"; String content = "您的验证码是:2546。请不要把验证码泄露给其他人。"; String url = "http://106.ihuyi.com/webservice/sms.php?method=Submit"; String params = "account=" + apiid + "&password=" + apikey + "&mobile=13800138000" + "&content=" + URLEncoder.encode(content, "UTF-8") + "&format=json"; HttpURLConnection c = (HttpURLConnection) new URL(url).openConnection(); c.setRequestMethod("POST"); c.setDoOutput(true); c.getOutputStream().write(params.getBytes("UTF-8")); BufferedReader r = new BufferedReader(new InputStreamReader(c.getInputStream(), "UTF-8")); String line; while ((line = r.readLine()) != null) System.out.println(line); // code=2 表示成功 } }
# -*- coding: utf-8 -*- import requests url = "http://106.ihuyi.com/webservice/sms.php?method=Submit" data = { "account": "APIID", # 用户中心获取 "password": "APIKEY", "mobile": "13800138000", "content": "您的验证码是:2546。请不要把验证码泄露给其他人。", "format": "json", } resp = requests.post(url, data=data).json() print(resp) # code = 2 表示提交成功
众多企业与开发者信赖的短信验证码服务商























