locked
How to use SMS API RRS feed

All replies

  • User-821857111 posted

    You marked that thread as resolved. What's the issue? 

    Friday, May 30, 2014 4:59 AM
  • User2129316869 posted

    You marked that thread as resolved. What's the issue? 

    Yes am sorry. My initial reason for the question was taken care of bu t midway the project we had to change a provider and the provider just gave me an API which i dont know how to use. The Last two posts will explain more. Thanks

    Friday, May 30, 2014 5:19 AM
  • User379720387 posted

    Install the Twilio WebMatrix helper from Nuget

    When this is done you will have two Twilio related dlls in your bin folder: Twilio.Api.dll and Twilio.WebMatrix.dll

    In _AppStart.cshtml:

        Twilio.AccountSid = "your account sid here";
        Twilio.AuthToken = "your token here";

    In the page where you intend to use Twilio: @using Twilio.WebMatrix;

    Put this before @{

    To send an SMS:

    Twilio.SendSMS("+1twiliophonenumber", "+1phonenumberto", "bodytext", "");

    Friday, May 30, 2014 8:12 AM