Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Using Status Callbacks.. question..? #8

Open
cpalanzo opened this issue Feb 26, 2016 · 0 comments
Open

Using Status Callbacks.. question..? #8

cpalanzo opened this issue Feb 26, 2016 · 0 comments

Comments

@cpalanzo
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant