Sorry, I'm still a newbie with Meteor/JS --- but I want to see Twilio callback/status info. I think the new version supports this but am not sure of the proper format on my Server code.
Originally code was:
TwilioClient.sendSMS({
to: phoneNumber,
body: message
});
Do I revise it as follows - "statusCallback" doesn't seem to work:
TwilioClient.sendSMS({
to: phoneNumber,
body: message,
statusCallback: function (error, info) {
if (error) {
throw new Meteor.Error(info,"Twilio");
} else {
console.log(info);
}
}
});
Sorry, I'm still a newbie with Meteor/JS --- but I want to see Twilio callback/status info. I think the new version supports this but am not sure of the proper format on my Server code.
Originally code was:
TwilioClient.sendSMS({ to: phoneNumber, body: message });
Do I revise it as follows - "statusCallback" doesn't seem to work:
TwilioClient.sendSMS({ to: phoneNumber, body: message, statusCallback: function (error, info) { if (error) { throw new Meteor.Error(info,"Twilio"); } else { console.log(info); } } });