SMS integration/OTP--Twillio

root folder-Twillio sms folder eduka
twilio sms-index.php eduka

athil details add cheyuka

demo
  rajimknair6@gmail.com
  rajimk1234567890

Demo creation
	buy a number eg:us etc
	
services on left l add sender services etc

check cheyan
services under try out option 

live
	fund add cheyanam







view files script

   $('#nextpage').on('click', function() {
        if($("#buyerregister").valid()){
            $("#page1").hide();
            $("#page3").show();
                    var email = $('#email').val();
                    var phoneno = $('#phone_no').val();
                    var otp = Math.floor(100000 + Math.random() * 999999);
//Save database
                    var APP_URL = {!! json_encode(url('/setotp')) !!} ;
                    var saveData = $.ajax({
                    type: 'GET',
                    url: APP_URL+'/'+email+'/'+phoneno+'/'+otp,
                    data: { email: email,phoneno: phoneno,otp: otp, _token: '{{csrf_token()}}' },
                    dataType: "text",
                        success: function(resultData) {
                            console.log(resultData);
                            /*if(resultData == 'success'){
                                alert('success');
                            }*/
                        }
                    });
//root la twillio sms folder
                    var SMS_URL = 'https://meddbot.com/twiliosms/' ;
                    var saveData = $.ajax({
                        type: 'POST',
                        url: SMS_URL,
                        data: { phoneno: phoneno, otp:otp, _token: '{{csrf_token()}}' },
                        dataType: "text",
                        success: function(resultData) {
                        }
                    });

        }
    });
});
