Hi guys
please i'm using the twilio API to send SMS
I noticed that when i put the implementation under a Restcontroller in the Application.kt file just for test , it was able to send sms to my phone
But when i moved the implementation to the controller package it gave me the error
The 'From' number xxx is not a valid phone number, shortcode, or alphanumeric sender ID.
d
Draget
09/01/2020, 2:36 PM
Have you tried stepping through it with a debugger and check if you really send the same things to the API?
Without knowing teh twillio API, but I think it does not care from which package it is called. Much more likely some variable/call with the wrong/differnt scope causes a wrong number being passed to the API.