In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to carry out php SMS interface, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
PHP SMS interface is essential for developing mall websites and APP platforms, because these website communities or platforms require users to register or log in.
So let's cut the nonsense and go directly to the SMS interface code and demo.
SMS sending API 1.1 request address
The request address is the url address requested when the client interface program is called, using the https post interface, and the address is
Https://sh3.ipyy.com/sms.aspx corresponds to UTF-8
Https://sh3.ipyy.com/smsGBK.aspx corresponds to GB2312
Https://sh3.ipyy.com/smsJson.aspx corresponds to UTF-8 (return value is in json format)
Https://sh3.ipyy.com/ensms.ashx corresponds to UTF-8 (encrypted transmission, using json)
Generally speaking, the entry address will not change, and when there is a change, the interface user will be notified.
1.2 Parameter description
Parameter name
Meaning
Description
Userid
Enterprise id
Enterprise ID (not verified)
Account
Send user account number
User account number, by system administrator
Password
Send account password
The password corresponding to the user account
You can use plaintext or all md5 encryption. Md5 is 32-bit uppercase.
For example, after abc123 encryption,
E99A18C428CB38D5F260853678922E03
Mobile
All dialed numbers
The destination number to which the message is sent. Multiple numbers are separated by half-width commas
Content
Send content
The content of the SMS message needs to be encoded by UTF-8, and the submitted content format: content + [signature]. Signature is the name of the company or the name of the company project. Example: your CAPTCHA: 1439 [take off]. [] is the identifier of the signature. Please submit the content test according to the formal format
SendTime
Timing sending time
If it is empty, it means to send immediately. The timing format is 2010-10-24 09:08:10.
Action
Send task command
Set to fixed: send
Extno
Extended subnumber
Please first ask whether the configured channel supports extended subnumbers. If not, please fill in the blanks. Subnumbers can only be numbers and up to 5 digits.
For example:
Https://sh3.ipyy.com/sms.aspx?action=send&userid=&account= account & password= password & mobile=15023239810,13527576163&content= content & sendTime=&extno=
1.3 return value
After receiving the https request sent by the client, the processing result is returned in the form of xml. The format is:
Status-return status value: successful return Success failed return: Faild
Message-related error description
Remainpoint-returns the balance
TaskID-returns the sequence ID of this task
SuccessCounts-number of successful SMS messages: returns the number of successful SMS messages submitted when successful
1.4 Json return value
{"returnstatus": "Success"
"message": "Operation succeeded"
Remainpoint: "- 4"
"taskID": "1504080852350206"
"successCounts": "1"}
PHP SMS interface demo
Http API call example after reading the above, have you mastered the method of how to implement php SMS interface? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.