zamtel-sms

0.3.0 • Public • Published

Zamtel Bulk SMS API - JS Package

Installation

npm i zamtel-sms

Configuration

Create a .env file in the root of your project and add the following

API_KEY=YOUR_API_KEY_FROM_ZAMTEL
SENDER_ID=YOUR_SENDER_ID_FROM_ZAMTEL
BASE_URL=https://bulksms.zamtel.co.zm/api/v2.1/action/send/

  • API_KEY is the API_KEY you were given by Zamtel
  • SENDER_ID is the SENDER_ID you were given by Zamtel

Usage

import sendSMS from 'zamtel-sms';

const response = sendSMS(0955786543,'Hello World!');
console.log(response);

You can also send a list of number as follows

import sendSMS from 'zamtel-sms';

const response = sendSMS([0955786543,0955786543],'Hello World!');
console.log(response);

Happy Coding!!

Readme

Keywords

Package Sidebar

Install

npm i zamtel-sms

Weekly Downloads

3

Version

0.3.0

License

MIT

Unpacked Size

35.2 kB

Total Files

20

Last publish

Collaborators

  • sikaili99