DispatchMe / meteor-twilio

A meteor package for using Twilio's APIs.
24 stars 5 forks source link

Using Status Callbacks.. question..? #8

Open cpalanzo opened 8 years ago

cpalanzo commented 8 years ago

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); } } });