I'm using UnityWebRequest with C# to send messages through twilio, but keep getting the error "A 'to' phone number is required." #682
Labels
status: waiting for feedback
waiting for feedback from the submitter
type: question
question directed at the library
Issue Summary
I'm using UnityWebRequest with C# to send messages through Twilio, but keep getting the error "A 'to' phone number is required." I've tested my Twilio number and personal number using Twilios website API so I know the problem isn't with either of them. I assume I should be able to use any phone number, but to be safe I even verified my number as a 'Caller ID' within Twilio. I've encountered errors related to my account SID and Auth, and resolved them so I know they aren't the problem. I recently created my Twilio account and don't have strong experience with it so let me know if I need to make some configurations in the console or if something in my code is causing the recipient phone number to be misread or not sent correctly.
Code Snippet
I call the method in my scene controller file with
Then in my Twilio file, which I've attached to the scene in Unity:
Using the above method and any phone number I try as recipientPhoneNumber in the '+1xxxxxxxxxx' format returns the error:
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: