Skip to content

Instantly share code, notes, and snippets.

@m-pokrovskii
Created May 24, 2018 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m-pokrovskii/7b6e47e2799958026f111160612ac22d to your computer and use it in GitHub Desktop.
Save m-pokrovskii/7b6e47e2799958026f111160612ac22d to your computer and use it in GitHub Desktop.
service.notifications
  .create({
        toBinding: bindings,
        body: message,
sms: {
status_callback: 'https://peppernet.serveo.net/admin/twilio/status/1'
}
  })
  .then((notification) => {
        console.log('Notify: ', notification.sid);
  })
  .catch((err) => {
        console.error(err);
  })
.done();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment