Our app has a feedback feature that now wants to send a text message to every user who has given feedback and has already purchased a SMS verification service.
Because the app is outsourced, backstage with Php+mysql, there are phpmyadmin, and I will point to the front end with Python, now add this feature is more troublesome.
Who gives a thought to provide.
Reply content:
Our app has a feedback feature that now wants to send a text message to every user who has given feedback and has already purchased a SMS verification service.
Because the app is outsourced, backstage with Php+mysql, there are phpmyadmin, and I will point to the front end with Python, now add this feature is more troublesome.
Who gives a thought to provide.
See what type of interface SMS interface, I use the HTTP, so, the direct curl call can be.
Does the SMS verification service not have a PHP SDK? If you are going to the HTTP protocol, you can use the PHP curl to implement
General SMS providers will provide PHP SDK, according to their interface document development
$clent = new Clent ([params]);
$client->sendsms ([infomation]);
After receiving feedback from the app, the corresponding interface of the SMS SDK can be sent to the user to send the corresponding text message (according to the description, should belong to the SMS notification Class), but can not ensure that the user must receive (such as the user's mobile phone arrears, etc.), but will give back the results of the return call success or not, If you are unfamiliar with PHP, you can consider whether it provides a Python SDK, according to the specific documentation of the SDK configuration key and other information, you can send text messages, because it is usually provided by HTTP interface, so you can use the HTTP request in Python, I want to help you.
Generally are HTTP interface, using CULR request, SMS service provider will have PHP SDK, download and integration into the code can ~, Welcome to try Submail SMS services, Submail