Hi Champs,
I have a Use case where user need to be authenticated with a onetime password provided to their mobile number. How can I achieve this?
Regards,
Ghanashyam
Discussion posts and replies are publicly visible
Integrate to a service like Twilio to send an SMS.
I am trying that..but getting error message while executing the same.
Below is my configuartion
Please let me know if I am missing anything here
Did you try changing application/json to text/plain in your parameters?
You need to format the body as application/x-www-form-urlencoded.
Change the Content-Type to Custom - application/x-www-form-urlencoded
and pass the body like:
"To=%2BPhoneNumber&From=%2BPhoneNumber&Body=Hi%20Dear"
Also, make sure that you have verified the number you are using in "To" from Twilio Console.
Technically, it accepts both multipart/form-data and application/x-www-form-urlencoded.
From the docs:
Twilio's APIs expect the content type of API requests to be either application/x-www-form-urlencoded or multipart/form-data. It is important to note that although Twilio returns responses in JSON format, the API requests themselves should be formatted as either www-urlencoded or multiparty form data.
yeah - it's there in the docs. But multipart/form-data didn't worked for me as well and hence I tried application/x-www-form-urlencoded which eventually worked. Later, I also found multiple posts on stack overflow stating that it only accepts application/x-www-form-urlencoded.https://stackoverflow.com/a/64219815https://stackoverflow.com/a/68291853
Hi..It worked with multipart/form-data as well. The way I was passing data was wrong initially .
the correct way is as below: