Notify Bulk SMS Library Documentation
Introduction
https://www.olympusmedia.co.zm
Notify is a bulk SMS Module for sending SMS's accross local zambian phone numbers. It is embedded in GameBox - Download the app here.
Instructions
NOTIFY_SMS_USERNAME="2609xxxxxxx"
NOTIFY_SMS_PASSWORD="***********"
- use the library as follows:
import { SMS } from '@open-source-initiative/notify-sms';
const setupNotify = async () => {
await SMS.configureAccessToken();
}
const setCredentials = async () => {
await SMS.setCredentials({ username: '2609xxxxxxxxx', password: '********' });
}
const getMySenderIds = async () => {
return await SMS.GET_SENDER_IDS();
}
const getMySMSBalance = async () => {
return await SMS.GET_SMS_BALANCE();
}
const sendSMSToMyContacts = async () => {
const smsResponse = await SMS.SEND_SMS_TO_CUSTOM_CONTACTS({ contacts: [ '2609xxxxxxxx' ], senderId: "644316912beefb5376aa11f2", message: 'Notify SMS::Test Message::Hello Zambia!!!' });
}
TEST YOUR CONNECTION
Answer the prompts:
- Enter Login Credentials
- Enter Test Numbers
node node_modules/@open-source-initiative/notify-sms/build/testMe.js --terminal
Support The MicroTech OpenSource Initiative
Support
Email us [info@microtech.co.zm]
TODO
- Document Library
- Test Library