コード例 #1
0
        //[Test]
        public void Send()
        {
            var sender = new TwilioMessageSender();

            GroupMessage.Server.Model.User user = new GroupMessage.Server.Model.User {
                PhoneNumber = "+45 61 33 54 40"
            };
            sender.Send(user, "ohøj");
        }
コード例 #2
0
        /// <summary>
        /// Main entry point of the testing application
        /// </summary>
        /// <param name="args">Application arguments</param>
        static void Main(string[] args)
        {
            GetAuthentificationDetails();
            var client         = SesSenderExtension.JsonParse();
            var sesEmailSender = new SesEmailSender(client);
            var email          = new EmailMessage()
            {
                Sender   = "*****@*****.**",
                Reciever = "*****@*****.**",
                Subject  = "test",
                Body     = "test",
            };

            var response      = sesEmailSender.Send(email);
            var messageSender = new TwilioMessageSender();
            var message       = new Core.MessageSender.Contracts.Models.Message()
            {
                Body     = "test",
                Sender   = "+12057827167",
                Reciever = "+420777894931"
            };

            var result = messageSender.Send(message);
        }
コード例 #3
0
 private void AttemptToSendMessage(string message, string toPhone)
 {
     TwilioMessageSender.SendMessage(message, toPhone);
 }