Test SMSLOGIN

Test SMS

1. Environment configuration: PHP 5.3 or above

##2. Configure 2 variables under the smsyzm.php file

$appId: The ID of the application, which can be viewed under the "Verification Notification SMS" product in the developer console

微信图片_20180312104441.png

$templateId: ID of the SMS template that passed the authentication


微信图片_20180312104443.png

3. Configure serverSid.php

$options['accountsid']: Fill in the developer Account Sid

微信图片_20180312104918.png

$options['token'] on the console homepage: Fill in on the developer console homepage Auth Token

微信图片_20180312104920.png


##4, run the downloaded file The effect of the index.html page

is shown below:

微信图片_20180312103412.png


##5, enter your mobile phone number and the verification code that needs to be sent to the mobile phone number (feel free to write a verification code)

Click to submit the test

微信图片_20180312105306.pngReturn json data:

微信图片_20180312105309.pngFor other return code information, please refer to Development Or just follow the documentation:

微信图片_20180312114819.png

##

Received the following text message:

微信图片_20180312105438.png

Next Section
<?php echo "测试短信";
submitReset Code
ChapterCourseware