예제 #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
            });
        }
예제 #2
0
 private static void ConfigureTwilioRestClient(StartUpAlertData startUpAlertData)
 {
     TwilioClient.Init(startUpAlertData.AccountSid, startUpAlertData.AuthToken);
 }