Home  >  Article  >  Backend Development  >  PHP Fetion Friends Free SMS API Interface Open Source Version_PHP Tutorial

PHP Fetion Friends Free SMS API Interface Open Source Version_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 15:36:04860browse

1. Support mass sending (if you need to send multiple numbers in bulk, separate them with English commas (,) (159..,159..))
2. Support data submission via POST or GET
This website interface:
http ://api.heqee.com/fetion/?username=Fetion mobile number&passowrd=Fetion mobile password&to=recipient number&message=SMS content
or
http://api.heqee.com/fetion/ ?u=Fetion mobile phone number&p=Fetion mobile phone password&t=recipient number&m=text message content

You can also download the source code and put it on your own website

Copy Code The code is as follows:

/*
Required PHP extensions: curl, simplexml
*/
include "libs /fetion.class.php";
#Set Fetion account password
$username="15900000000";
$password="password";
//Receive numbers, use "," for multiple numbers Separate (159..,159..)
$sendto ="15900000000,13400000000";
//Message content
$message = "I am from heqee.com";
//Example (required)
$fetion = new fetion($username,$password);
//Send returns Boolean
$sms = $fetion->send($sendto,$message);
if($sms){
echo "ok";
}
?>

Open source code download http://www.jb51.net/codes/28628 .html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322220.htmlTechArticle1, supports group sending (if you need to send multiple numbers in a group, separate them with English commas (,) (159..,159. .)) 2. Support POST or GET method to submit data. This website interface: http://api.heqee.com/fetion/?username=Fetion mobile...
Statement:
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