public void Send(Message message) { var whatsApp = new WhatsAppApi(accountSid, authToken); string sid = whatsApp.Send(message.To, message.Text); Console.WriteLine(sid); }
public void Send(string PhoneFrom, string PhoneTo, string TextTo) { var whatsApp = new WhatsAppApi(accountSid, authToken); string sid = whatsApp.Send(PhoneTo, TextTo); Console.WriteLine(sid); }
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); }
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); }
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); }
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 void Send(Message message) { sender.Send(message.To, message.Text); }
public void Send(Message messageW) { whatsApp.Send(messageW.To, messageW.Text); }
public void Send(Message message) { var whatsApp = new WhatsAppApi(accountSid, authToken); whatsApp.Send("+59899256116", message.Text); }