Socket
Socket
Sign inDemoInstall

simplefreesms

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simplefreesms

A basic way to send SMS with Free API


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
6.21 kB
Created
Weekly downloads
 

Readme

Source

simplefreesms

A basic way to send SMS with Free API

Installation

$ npm install simplefreesms

Features

  • just send free sms with your Free account (https://mobile.free.fr/moncompte/)

Doc

  • static sendStatic(string login, string secretKey, string message) // return Promise
  • login(string login) // return this
  • key(string secretKey) // return this
  • send(string message) // return Promise

Examples


// sync

const SMS = require('simplefreesms');

// send message without object instanciation
SMS.sendStatic('XXXXXXXX', 'XXXXXXXXXXXXXX', 'message').then(function() {
   console.log('sended');
}).catch(function(err) {
   console.log(err);
});

// send message with object instanciation

let mySMS = new SMS();

// register login & secret key for this instance
mySMS.login('XXXXXXXX').key('XXXXXXXXXXXXXX');

// send message with registered login & secret key
mySMS.send('message').then(function() {
   console.log('sended');
}).catch(function(err) {
   console.log(err);
});

Tests

$ node tests/tests.js

License

ISC

Keywords

FAQs

Last updated on 02 May 2016

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