VB.Net Working Example - SMS from study (Using Twilio)

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

VB.Net Working Example - SMS from study (Using Twilio)

Postby Ram » 24 Dec 2014

get your API credentials from Twilio account https://www.twilio.com/
copy your Account Sid and Auth Token

download the attached Twilio's Dll's and add both to your study

To add a reference to your study just right click on the body of the study and select "reference..."
Image

Image

in your code add:

Code: Select all

Imports Twilio
Insert your Twilio credentials in the Sub below:

Code: Select all

Sub SMS
Dim AccountSid As String = "YOUR_API_HERE"
Dim AuthToken As String = "YOUR_API_HERE"
Dim twilio = New TwilioRestClient(AccountSid, AuthToken)

Dim YourTwilioNumber As String = "+11111111111"
Dim RecipientNumber As String = "+222222222"
Dim SmsMessage As String = "message from Multichart"

Dim message = twilio.SendMessage(YourTwilioNumber, RecipientNumber, SmsMessage, "")
End Sub
Enjoy.
Attachments
Twilio.rar
(110.86 KiB) Downloaded 558 times

Return to “User Contributed Studies”