Skip to content

[UNMAINTAINED] Unofficial Gabia SMS API for Node.js

License

Notifications You must be signed in to change notification settings

Snack-X/node-gabia-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gabia SMS

Unofficial Gabia SMS API for Node.js.

API

Initialize library

var GabiaSms = require("gabia-sms");
var SMS = new GabiaSms(GABIA_ID, GABIA_API_KEY);

Get SMS quota

GabiaSms.getSmsCount(cb)

Send SMS(es), or LMS(es)

GabiaSms.sendSms(params, cb), GabiaSms.sendLms(params, cb), GabiaSms.sendSmses(params, cb), GabiaSms.sendLmses(params, cb)

Object params should have three properties, phone, callback, message.

  • params.phone - Destination phone number(s). Dashes in phone number(s) doesn't matter. If calling sendSmses or sendLmses, it can be comma seperated numbers, or Array of phone numbers.
  • params.callback - Sending phone number. This phone number should be registered at Gabia SMS service. Dashes in phone number(s) doesn't matter.
  • params.message - Body of SMS or LMS.

TODO

  • Better documentation
  • Better error handling
  • Remove XMLRPC
  • Implement all api
  • In pure Javascript (xml2json uses node-expat)

About

[UNMAINTAINED] Unofficial Gabia SMS API for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages