textlocal-complete

0.4.3 • Public • Published

textlocal-complete

npm npm install size GitHub issues

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');

License

MIT

Package Sidebar

Install

npm i textlocal-complete

Weekly Downloads

41

Version

0.4.3

License

MIT

Unpacked Size

7.31 kB

Total Files

18

Last publish

Collaborators

  • namanattri