Home > php教程 > php手册 > PHP 飞信好友免费短信API接口开源版

PHP 飞信好友免费短信API接口开源版

WBOY
Release: 2016-06-06 20:34:42
Original
1406 people have browsed it

飞信好友免费短信API接口PHP开源版,支持群发功能。

1,网站空间,服务器空间,支持群发 (如果需要群发多号用英文逗号(,)分隔(159..,159..))
2,支持POST或GET方式提交数据
本站接口:
?username=飞信手机号码&passowrd=飞信手机密码&to=接收人号码&message=短信内容
或者
?u=飞信手机号码&p=飞信手机密码&t=接收人号码&m=短信内容

您也可以下载源码放在自己的网站上

复制代码 代码如下:


/*
所需PHP扩展:curl, simplexml
*/
include "libs/fetion.class.php";
#设置飞信帐号密码
$username="15900000000";
$password="password";
//接收号码,网站空间,多号码用","分隔(159..,159..)
$sendto ="15900000000,13400000000";
//消息内容
$message = "I am from heqee.com";
//实例化(必须)
$fetion = new fetion($username,$password);
//发送 返回布尔
$sms = $fetion->send($sendto,$message);
if($sms){
echo "ok";
}
?>


开源代码下载
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template