Promise based textlocal client for nodejs
$ npm i textlocal-complete
All the functions below return a Promise object.
sendSms('YOUR-API-KEY', 919999999999, 'TXTLCL', 'Message');
sendSmsToMultipleNumbers(
'YOUR-API-KEY',
[
/** Array of phone numbers */
],
'SENDER-CODE-6-LETTERS',
'Message matching the template',
);
sendBulk(
'YOUR-API-KEY',
[
// { phoneNumber: PHONE-NUMBER, message: 'MESSAGE-TO-BE-SENT' },
],
'SENDER-CODE',
);
getBalance('YOUR-API-KEY');
getTemplates('YOUR-API-KEY');