README
textlocal-complete
Promise based textlocal client for nodejs
Installation Details
$ npm i textlocal-complete
Usage
All the functions below return a Promise object.
Send an SMS to single contact
sendSms('YOUR-API-KEY', 919999999999, 'TXTLCL', 'Message');
Send an SMS to multiple contacts
sendSmsToMultipleNumbers(
'YOUR-API-KEY',
[
/** Array of phone numbers */
],
'SENDER-CODE-6-LETTERS',
'Message matching the template',
);
Bulk API
sendBulk(
'YOUR-API-KEY',
[
// { phoneNumber: PHONE-NUMBER, message: 'MESSAGE-TO-BE-SENT' },
],
'SENDER-CODE',
);
Get Balance
getBalance('YOUR-API-KEY');
Get Templates
getTemplates('YOUR-API-KEY');