PHP implementation of online text messaging, the need for Third-party APIs, the following code is called the Textmagic API to achieve the function of sending SMS:
View SOURCEPRINT?01
02//introduces textmagic PHP library files
03require (' textmagic-sms-api-php/textmagicapi.php ');
04$username = ' MyUserName ';
05$
#!/bin/shAccount and password can is change to what do you wanna!#author Chuanglan#修改为您的accountAccount= ""#修改为您的pwPassword= "a.123456"#手机号码, Format (area code + mobile number), for example: 8615800000000, where 86 is China's area codeMobile= "8615800000000"#设置您要发送的内容msg= "253 Cloud Communication" Your verification code is 123456. If you do not operate, please ignore. "echo "Send SMS:"Url= "Http://intapi.253.com/send/json"Data= "{\" account\ ": \" $acc
1. API parameter description
Parameter variables
Description
GBK Encoded URL
Http://gbk.sms.webchinese.cn/
UTF-8 Encoded URL
Http://utf8.sms.webchinese.cn/
UID
User name of this site (if you do not have the user name of this site, please register first)
Key
Interface security password entered during registration (you can change the security password on the user platform)
Smsmob
D
Group BuyingProgramIt is a good open-source PHP + MySQL program, which is favored by many webmasters. She originally provided her own text message interface, but the text message price is not very cheap, you can use the modification in the most soil. (Modify the text message sending or subscription content)
Open the most Earth program file/Include/function/SMS. phpThe original SMS sending function is as f
address for b2b2c mall Android Download Mobile client AddressAfter the modification, go to the clear website cache, Access address is HTTP//your domain name/wap/The default program is monthly billing, if you want to modify the weekly billing, useDatabase: Shopnc_order_statis table the type of field os_month is changed to INT (11)http://localhost/data/crontab/index.phpModify the bottom Powered by shopnc method to find coreframeworkcorebase.php you modify the 70th line of this file $setting [' sh
End Function
Dim target,post_data
target = "Http://intapi.253.com/send/json"
'//mobile number, format (area code + mobile number), for example: 8615800000000, of which 86 is China's area code
("253 Cloud Communication" Hello, your verification code is 999999) ""} "
Response. Write (Post (Target,post_d
Note: The following code is only for the convenience of customer testing and provide the sample code, the customer can according to their own needs to write the code for Learning and research interface only for use, but provides a referenceRequire ' net/http 'Require ' URI 'Require ' JSON 'params = {"Account" = "","Password" = "a.123456",Mobile phone number, format (area code + mobile number), for example: 8615800000000, of which 86 is China's area code"mobile" => "8615800000000", }.to_jsondef
This article describes the PHP version of the micro-letter automatic access to receive address API usage. Share to everyone for your reference, specific as follows:
Micro-trust public platform is now more and more powerful, we can through a variety of API interface with the platform to get the corresponding data, the following to see a micro-letter implemented b
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.