forked from aparupa-chatterjee/DTU
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sms.js
15 lines (14 loc) · 661 Bytes
/
sms.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Download the helper library from https://www.twilio.com/docs/node/install
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = 'ACc0ee9924105b22b43725dea918daed9a';
const authToken = '9480ba8dc855d53da500180d5aeca05a';
const client = require('twilio')(accountSid, authToken);
client.messages
.create({
body: 'This is the ship that made the Kessel Run in fourteen parsecs?',
from: '+18507538185',
mediaUrl: ['https://c1.staticflickr.com/3/2899/14341091933_1e92e62d12_b.jpg'],
to: '+919330153984'
})
.then(message => console.log(message));