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

appzone

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appzone

Appzone NodeJS Client

  • 0.2.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

NodeJs Client for Appzone

Appzone is the only Cloud Telco Platform in Srilanka which operates on Etisalt Srilanka. This is 100% appzone compatible client library for NodeJs

Dependencies

  • NodeJS 0.4 +
  • npm 0.3 +

Installation

npm install appzone

Not Just A Dump API

Appzone for NodeJS is not a dump API which replicates the Appzone Core API but provides you a much cleaner interface to do what you wanted to do. Message retries will be happen behind the seen and avoid most of the tedious works from you.

Usage

import the library

var appzone = require('appzone');

Sending

var sender = appzone.sender('http://appzone-server', 'appId', 'password');

//sendSms
sender.sendSms('07223434', 'this is my message', function(err, resp) {
	//do what ever after message sent
});

//broadcastSms
sender.broadcastSms('broadcast message');

//sendUssd
sender.sendUssd('address', 'conversationId', 'message');

//sendUssdAndTerminate
sender.sendUssdAndTerminate('address', 'conversationId', 'message');

Receiving

var receiver = appzone.receiver('8734') //any port you like

//receive SMS
receiver.onSms(function(sms) {
	//sample sms object
	//{address: "234343", message: "dscdfHh", correlator: "434", version: "1.0"}
});

//receive USSD
receiver.onUssd(function(ussd) {
	//sample ussd object
	//{address: "234343", message: "dscdfHh", correlatationId: "434", conversationId: "343434394893", version: "1.0"}
});

//receive USSD termination
receiver.onUssdTerminate(function(ussd) {
	//sample ussd object (this doesn't have the message)
	//{address: "234343", correlatationId: "434", conversationId: "343434394893", version: "1.0"}
});

FAQs

Package last updated on 06 Jan 2012

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