SMS Verification-How does PHP invoke the SMS interface?

Source: Internet
Author: User
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

    1. $clent = new Clent ([params]);

    2. $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

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.