Exemplo n.º 1
0
        public static void TwilioMessage(string phoneNumber, string messageText)
        {
            string accountSid = MyKeys.GetAccountSidTwilio();
            string authToken  = MyKeys.GetAuthTokenTwilio();

            TwilioClient.Init(accountSid, authToken);

            var message = MessageResource.Create(
                body: messageText,
                from: new Twilio.Types.PhoneNumber("+19206266861"),
                to: new Twilio.Types.PhoneNumber("+" + phoneNumber)
                );
        }