npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mobily-sms

v1.0.0

Published

sending sms using mobile sms gateway

Readme

Mobily SMS NodeJs

An unofficial nodeJs library for Implementation of Mobily SMS Gateway.

Change Log

[1.0.0] - 2017-02-16

Changed

  • Soap removed, Json api added

Installation

Install using npm:

npm install mobily-sms --save

Usage

Require library

var mobilySms = require('mobily-sms')('username','password');

Check Send Status

mobilySms.sendStatus(function(err,data){
  /*
   *This API provides you with the ability to check the sending process status in Mobily.ws,
   *so you know if you can send your SMS now or later.
   */
});

Sending Sms

mobilySms.sendSms('Hello there! How are you?',['966566666666','919999666666'],sender,option,function(error,data){
  /*
   * option is an optional attribute which will be an object
   * option can have the following attribute
   *  - domainName
   *    Your webiste url, by default www.mobily.ws will be taken
   *  - MsgID
   *    Random number that will be attached with the posting, just in case you want to send same message in less than one hour from the first one
   *    Mobily prevents recurrence send the same message within one hour of being sent, except in the case of sending a different value with each send operation
   *  - timeSend
   *    Determine the send time, 0 means send now
   *    Standard time format is hh:mm:ss
   *  - dateSend
   *    Determine the send date, 0 means send now
   *    Standard time format is mm:dd:yyyy
   *  - deleteKey
   *    Use this value to delete message using delete potal
   *    You can specify one number for group of messages to delete
   *  - lang
   *    When you send message without encoding you must sent Lang parameter with 3 as its value
   */
  /*
   *ErrorCode:0 => Not connect to server
   *ErrorCode:1 => SMS sent successfully
   *ErrorCode:2 => Your balance is 0
   *ErrorCode:3 => Your balance is not enough.
   *ErrorCode:4 => Invalid mobile number (or invalid username).
   *ErrorCode:5 => Invalid password.
   *ErrorCode:6 => SMS-API not responding, please try again.
   *ErrorCode:10 => SMS counts don’t match mobiles numbers count.
   *ErrorCode:13 => Mobile number is not active as a Sender Name.
   *ErrorCode:14 => Sender name is not active from Mobily.ws and mobile telecommunications companies
   *ErrorCode:15 => Mobile number(s) is not specified or incorrect.
   *ErrorCode:16 => Sender name is not specified.
   *ErrorCode:17 => Message text is not specified or not encoded properly with Mobily.ws Unicode.
   */
});

Other available methods

Change Password

mobilySms.changePassword(newPassword,function(err,data){
  /*
   *This API provides you the ability to change your Mobily.ws account password
   */
});

Forget Password

mobilySms.forgetPassword(function(err,data){
  /*
   *This API provides you with the ability to retrieve your password back, in case you forget it.
   */
});

getBalance

mobilySms.getBalance(function(err,data){
  /*
   *This API provides you with the ability to check your balance, in any time.
   */
});

deleteMsg

mobilySms.deleteMsg(deleteKey,function(err,data){
  /*
   * This API provides you with the ability to delete schedule SMS, before its send time.
   */
});

Request a license for mobile number as a sender name:

mobilySms.addSender(sender,function(err,data){
  /*
   *This API provides you with the ability to request a license for mobile number as a sender name,
   *you should notice that the mobile number you used to register with Mobily.
   *ws will be licensed as a sender name automatically,
   *but if you need to use another mobile number as a sender name for your SMS,
   *you should request a license for it, the new mobile number will be defined by Mobily.ws and telecommunications companies,
   *this API will return a request number called senderId as #XXXX,
   *and will sent a check code to the new mobile number,
   *those information are important to the next API “activate mobile number as a sender name”.
   */
});

Activate mobile number as sender name:

mobilySms.activeSender(senderId,activeKey,function(err,data){
  /*
   *This API provides you with the ability to activate a mobile number which was requested in the previous API
   *“Request a license for mobile number as a sender name” as a sender name.
   */
});

Check sender name activation status:

mobilySms.checkSender(senderId,function(err,data){
  /*
   *This API provides you with the ability to check the activation status of a mobile number as a sender name,
   *you can use this API after using “Activate mobile number as sender name” API
   *to confirm that the mobile number is activated as a sender name.
   */
});

Request a license for alphabets names as sender name:

mobilySms.addAlphaSender(sender,function(err,data){
  /*
   *This API provides you with the ability to activate alphabets names as a sender name
   */
});

Check alphabets sender name activation status:

mobilySms.checkAlphasSender(function(err,data){
  /*
   *This API provides you with the ability to check the activation status of an alphabets sender name,
   *also its will return all the senders’ names activation status in your account.
   */
});

msgSendWK (Coming soon)