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