I have configured Twilio phone number and given settings as per the documentation. On the callback URL i have written code like this
Route::post('/replyMessages', function(){
Log::info('inside reply messages URL');
$response = new \Twilio\TwiML\MessagingResponse();
Log::info(print_r($response, true));
$message = $response->message("Testing sms from twilio to staffing backbone");
print_r($response);
Log::info('SMS reply URL callback');
});
When user is replied from their mobile nothing is happening. If URL hits the log, then it will print the text given but not working. Kindly help me on this.
As per one of the document in Twilio they are expected to install ngrok is that necessary in order to call our URL? documentation link
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ZR204z
via IFTTT

Aucun commentaire:
Enregistrer un commentaire