Git Product home page Git Product logo

way2sms's Introduction

Send free SMS through Way2SMS.

# install as console app
$ npm install -g way2sms

# install as node.js package
$ npm install way2sms

console

$ way2sms <command> [options]
# Commands:
# - re-login: save login details (login)
# - logout: remove login details
# - smtoss: send sms (send)
# Options:
# -m | --mobileno: login mobile no. (user)
# -p | --password: login password
# -c | --cookie: login cookie
# -t | --tomobile: send sms to? (to)
# -# | --quiet: quiet mode
# Environment variables:
# WAY2SMS_MOBILENO: login mobile no.
# WAY2SMS_PASSWORD: login password
# WAY2SMS_COOKIE: login cookie
# WAY2SMS_TOMOBILE: send sms to?


# login to way2sms
$ way2sms login
Mobile no.: <9876543210>
Password: <password>

# send sms "foggy day" to 8976543210
$ way2sms send
To mobile: <8976543210>
Message: <foggy day>

# logout
$ way2sms logout

# login with arguments
$ way2sms login -m 9876543210 -p password

# send sms with arguments
$ way2sms send -t 8976543210 "foggy day"

# send sms with given login details
$ way2sms send -m 9876543210 -p password -t 8976543210 "foggy day"

# send sms with environment variables, quiet mode
$ WAY2SMS_MOBILENO=9876543210
$ WAY2SMS_PASSWORD=password
$ way2sms send -# -t 8976543210 "foggy day"

package

const way2sms = require('way2sms');
// way2sms.reLogin(<mobileno>, <password>): returns login cookie (promise)
// way2sms.smstoss(<cookie>, <tomobile>, <message>): sends sms (promise)

cookie = await way2sms.login('9876543210', 'password'); // reLogin
// <cookie string>

await way2sms.send(cookie, '8976543210', 'foggy day'); // smstoss
// (sent!)

way2sms

way2sms's People

Contributors

assasinitachi123 avatar wolfram77 avatar

Watchers

 avatar  avatar  avatar

way2sms's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.