Beispiel #1
0
        public void Send(string PhoneFrom, string PhoneTo, string TextTo)
        {
            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send(PhoneTo, TextTo);

            Console.WriteLine(sid);
        }
Beispiel #2
0
        public void Send(Message message)
        {
            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send(message.To, message.Text);

            Console.WriteLine(sid);
        }
Beispiel #3
0
        public void Send(string phone, string message)
        {
            const string accountSid = "ACa8395e7223e7719988c09db8dfb68f0f";
            const string authToken  = "fdcaac12dc7e5b031908429ee402e7a4";

            var whats = new WhatsAppApi(accountSid, authToken);

            whats.Send(phone, message);
        }
        public void Send(IMessage message)
        {
            const string accountSid = "AC52493b284c82ba2c6b196ef82e412576";
            const string authToken  = "<INGRESAR EL TOKEN>"; // No dejamos el token por lo que pidieron ustedes, si lo ingresan va a funcionar

            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send(((WhatsAppMessage)message).To, ((WhatsAppMessage)message).Text);

            Console.WriteLine(sid);
        }
Beispiel #5
0
        public void Send()
        {
            const string accountSid = "AC52493b284c82ba2c6b196ef82e412576";
            const string authToken  = "<ingresar token solo a nivel local, no subir al repo>";

            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send("+598<Poné tu teléfono acá>", "Hey there! I'm using WhatsAppUCU");

            Console.WriteLine(sid);
        }
Beispiel #6
0
        public void Send(Message message)
        {
            const string accountSid = "ACa8395e7223e7719988c09db8dfb68f0f";
            const string authToken  = "fdcaac12dc7e5b031908429ee402e7a4";

            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send(message.To.Phone, message.Text);

            Console.WriteLine(sid);
        }
Beispiel #7
0
        public void Send(Whatsapp message)
        {
            // to "+598<Poné tu teléfono acá>"
            // text "Hey there! I'm using WhatsAppUCU"
            const string accountSid = "ACa8395e7223e7719988c09db8dfb68f0f";
            const string authToken  = "fdcaac12dc7e5b031908429ee402e7a4";

            var    whatsApp = new WhatsAppApi(accountSid, authToken);
            string sid      = whatsApp.Send(message.To, message.Text);

            Console.WriteLine(sid);
        }
 public WhatsAppMessageChanel(string accountSid, string authToken)
 {
     this.whatsAppApi = new WhatsAppApi(accountSid, authToken);
 }
Beispiel #9
0
        public void Send(Message message)
        {
            var whatsApp = new WhatsAppApi(accountSid, authToken);

            whatsApp.Send("+59899256116", message.Text);
        }