Sending Message Using Twilio-C# -


hy... i'm learning twilio rightnow, , have seen post here http://www.markhagan.me/samples/send-sms-using-twilio-aspnet

i have made own code because in above site "sendsmsmessage" deprecated now, here code :

using system.text; using system.threading.tasks; using twilio; namespace smsusingtwilio {     class program     {         static void main(string[] args)         {             string account_sid = "acmysid";              string auth_token = "40myauthtoken";              twiliorestclient client = new twiliorestclient(account_sid, auth_token);              message response = client.sendmessage("(732)305-8856", "+6285220446195", "hellow hyosoka poipo :d");               console.writeline(response.status);             console.writeline(response.accountsid);              console.writeline("sms berhasil di kirim");             console.readline();             }     } } 

the problem don't sms message phone number , don't response in c# project: enter image description here

so what's wrong here...?? please help..thank much...:)

after seeing mr.david answer, realized phone number not yet verified. go link verifying number:

https://www.twilio.com/user/account/phone-numbers/verified

after that, run project agian , here result : enter image description here

yeeeiii...thanks comments , answer... appreciate it... :)


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -