Socket
Socket
Sign inDemoInstall

fortysix-elks

Package Overview
Dependencies
23
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fortysix-elks

A wrapper for the 46elks (http://46elks.com) API. At the moment only sms functions are supported


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

fortysix-elks

A simple wrapper for the 46elks (http://46elks.com) API. At the moment only sms functions are supported.

Install

npm install fortysix-elks

Usage

Set up the Client

Require the fortysix-elks module and initalize a new client using your 46elks credentials. If the environment variables FORTYSIXELKS_USERNAME and FORTYSIXELKS_PASSWORD are set these two parameters can be omitted.

var fortysixElks = require('fortysix-elks');
var fc = new fortysixElks.Client('46elks username', '46elks password');

Send an SMS

Please check the code comments for details of this functions parameters and the values passed to the callback.

fc.sendSMS('Sender', '+4670****085', 'Hello!', function(err, res) {
  console.log(err);
  console.log(res);
});

Changelog

0.0.3 (2013-09-19)

  • The sendSMS() callback now receives a parsed version of the data that is returned by the 46elks API. Please see the comments in the code or the tests for an explanation of this data.
  • Error messages from the 46elks API is now passed as a part of the Error object's message.
  • Support for text message delivery reports.

0.0.2 (2013-09-18)

  • It is now possible to send text messages to multiple recipients.

0.0.1 (2013-09-18)

  • Initial release.

TODO

  • Support for phone number allocation.

  • Support for phone number modification and deallocation.

Keywords

FAQs

Last updated on 19 Sep 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc