Exemple #1
0
        private static CreateMessageOptions GetTwilioCreateMessageOptions(StartUpAlertData startUpAlertData)
        {
            var fromNumber = new PhoneNumber(startUpAlertData.FromNumber);
            var toNumber   = new PhoneNumber(startUpAlertData.ToNumber);

            return(new CreateMessageOptions(toNumber)
            {
                From = fromNumber,
                Body = startUpAlertData.Body
            });
        }
Exemple #2
0
 private static void ConfigureTwilioRestClient(StartUpAlertData startUpAlertData)
 {
     TwilioClient.Init(startUpAlertData.AccountSid, startUpAlertData.AuthToken);
 }