@uneiotech/elisa_whatsapp
Version:
Elisa WhatsApp is a library to stable a communication between channels and server.
32 lines (22 loc) • 583 B
Markdown
Elisa Whatsapp is a library to dealing with the comunication bettween channels and server.
npm i @uneiotech/elisa_whatsapp
const config = {
apiKey: <String>,
url : <String>
}
const elisaWhatsApp = new ElisaWhatsApp(config)
const message = {
numberTo:"099999999999",
type:"text",
message:"My first message"
}
elisaWhatsApp.sendMessage(message).then(res =>{
console.log("Response",res)
})
.catch(err=>{
console.log("Error", err)
})
console.log("Elisa whatsApp")