Heim  >  Artikel  >  Backend-Entwicklung  >  PHP 飞信好友免费短信API接口开源版_PHP教程

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

WBOY
WBOYOriginal
2016-07-21 15:36:04827Durchsuche

1,支持群发 (如果需要群发多号用英文逗号(,)分隔(159..,159..))
2,支持POST或GET方式提交数据
本站接口:
http://api.heqee.com/fetion/?username=飞信手机号码&passowrd=飞信手机密码&to=接收人号码&message=短信内容
或者
http://api.heqee.com/fetion/?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";
}
?>

开源代码下载http://www.jb51.net/codes/28628.html

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/322220.htmlTechArticle1,支持群发 (如果需要群发多号用英文逗号(,)分隔(159..,159..)) 2,支持POST或GET方式提交数据 本站接口: http://api.heqee.com/fetion/?username=飞信手机...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn