0.3.0 • Published 3 years ago

zamtel-sms v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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!!

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago