PHP示例SMS代码-消息传递API
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP示例SMS代码-消息传递API相关的知识,希望对你有一定的参考价值。
BroadNet Technologies furnishes you with a variety of php Sample SMS code examples and programming objects, and assist you in connecting to our gateway via the PHP script. Sending your messages via our designed PHP SMS Sample Code is easier than you guess!
//PHP SMS API integration code //Your application url $ApiUrl ="ApiUrl";) //Your User Id $user ="user"; //Your password $pass ="****"; //Multiple mobiles numbers separated by comma $mno = "9999999"; //Sender ID,While using route4 sender id should be 6 characters long. $sid = "102234"; //Your message to send, Add URL encoding here. $text = "Test message"; // Message Type (1,2,3,4) 1- English,2-Unicode,3- Special Character,4-Arabic $type = "type"; //Prepare parameter string $url = "$ApiUrl?user=$user&pass=$pass&sid=$sid&mno=$mno&text=$text&type=$type"; //prepare connection //reading response //finally close connection //print response echo $body;
以上是关于PHP示例SMS代码-消息传递API的主要内容,如果未能解决你的问题,请参考以下文章