Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@open-source-initiative/notify-sms

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-source-initiative/notify-sms

This library enables users to send SMSs to zambian numbers accross all networks via notify

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

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

//or
//const SMS  = require('mosi/sms');



/**
 * configure access token
*/
const setupNotify = async () => {
    await SMS.configureAccessToken();
}

/**
 * configure credentials if not already set in your .env
 * @note { only do this if you havent set credentials in your .env }
*/
const setCredentials = async () => {
    await SMS.setCredentials({ username: '2609xxxxxxxxx', password: '********' });
}

/**
 * fetch your sender Ids
 * @returns [  { name: 'MicroTech', identifier: '644316912beefb5376aa11f2' }, ... ]
*/

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

Keywords

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc