// Simply fill in the underlined fields with your data
import { createSMSModule, sipgateIO } from 'sipgateio';
const tokenId = '';
const token = '';
const client = sipgateIO({ tokenId, token });
const to = '';
const smsExtension = '';
const message = '';
const shortMessage = {
message,
to,
smsId: smsExtension,
};
const sms = createSMSModule(client);
sms
.send(shortMessage)
.then(() => { console.log('Sms sent.') })
.catch(console.error);