Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const accountSid = process.env.TWILIO_ACCOUNT_SID;
- const authToken = process.env.TWILIO_AUTH_TOKEN;
- const client = require('twilio')(accountSid, authToken);
- client.messages
- .create({
- from: 'whatsapp:+15005550006',
- body: 'Thank you for participating in MLH Global Hack Week',
- to: 'whatsapp:+14155238886'
- })
- .then(message => console.log(message.sid));
Advertisement
Add Comment
Please, Sign In to add comment