0.4.3 • Published 4 years ago

textlocal-complete v0.4.3

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

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

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.1.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.0.1

4 years ago