How do you send a new message to a Twilio Conversation in node.js?
I found this sample code from Twilio, but I don't know how to get messagingServiceSid
for my Conversation.
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);
client.messages
.create({
body: 'Revenge of the Sith was clearly the best of the prequel trilogy.',
messagingServiceSid: 'MG9752274e9e519418a7406176694466fa',
to: '+441632960675'
})
.then(message => console.log(message.sid));