Open julien-c opened 5 years ago
I would love this too.
In the meantime I use:
import util from 'util';
import initMB from 'messagebird';
const messagebird = initMB(messagebirdKey);
const send = util.promisify(messagebird.messages.create);
await send({
originator : '<YOUR-MOBILE-NUMBER>',
recipients : [ '<YOUR-MOBILE-NUMBER>' ],
body : 'Hi! This is your first message'
});
Is promises support on the roadmap for this lib?