Coder Social home page Coder Social logo

way2sms's Introduction

Send SMS through Way2SMS in Windows Console.

  1. Download exe file.
  2. Copy to C:\Program_Files\Scripts.
  3. Add C:\Program_Files\Scripts to PATH environment variable.
  4. Register an account in Way2SMS.
  5. Send SMS from argument, file (redirect), or command output (pipe).
> way2sms <command> [<flags>]

:: commands:
:: - get [-u|-p] [-0]
:: - set [-u <username>|-p <password>] [-i <input>] [-0]
:: - send [-u <username>] [-p <password>] [-t <to>] [-i <message (input)>] [-0]
::
:: flags:
:: -u|--username [<username>]
:: -p|--password [<password>]
:: -i|--input <input>
:: -0

get

Get configuration values of username and/or password. If a configuration has been set, all commands post it will use it unless it is already they are already specified as environment variables, or as arguments.

:: get all configuration values
> way2sms get

:: get username configuration value
> way2sms get -u

:: get configuration to file
> way2sms get > <config file>
> way2sms get > config.ini

:: get configuration with mr. interactive
> way2sms get -0
GET CONFIGURATION
Username: 9876543210
Password: incorrect

set

Set configuration values of username and/or password. Once configuration has been set, all commands post it will use it unless it is already they are already specified as environment variables, or as arguments.

:: set all configuration values
> way2sms set -u <username> -p <password>
> way2sms set -u 9876543210 -p incorrect

:: set password configuration value
> way2sms set -p <password>
> way2sms set -p incorrect

:: set configuration from file
> echo username=<username>> <config file>
> echo username=9876543210> config.ini
> echo password=<password>>> <config file>
> echo password=incorrect>> config.ini
> way2sms set < <config file>
> way2sms set < config.ini

:: set configuration with mr. interactive
> way2sms set -0
SET CONFIGURATION
Username: <username>
Username: 9876543210
Password: <password>
Password: incorrect

send

Login to Way2SMS using given username and password, and send SMS message to specified mobile number, as specified in input. username and password are special options and can be specified as arguments, environment variables, or configuration set using set command.

:: send sms using arguments
> way2sms send -u <username> -p <password> -t <to> -i <message(input)>
> way2sms send -u 9876543210 -p incorrect -t 8765432109 -i "Short Message Service!"

:: send sms using environment variables
> set OWAY2SMS_USERNAME=<username>
> set OWAY2SMS_USERNAME=9876543210
> set OWAY2SMS_PASSWORD=<password>
> set OWAY2SMS_PASSWORD=incorrect
> way2sms send -t <to> -i <message (input)>
> way2sms send -t 8765432109 -i "Short Message Service!"

:: send sms using configuration
> way2sms set -u <username> -p <password>
> way2sms set -u 9876543210 -p incorrect
> way2sms send -t <to> -i <message (input)>
> way2sms send -t 8765432109 -i "Short Message Service!"

:: send sms with input from file text
> ping <host> > <log file>
> ping www.google.co.in > ping-www.google.co.in.log
> way2sms send -u <username> -p <password> -t <to> < <file>
> way2sms send -u 9876543210 -p incorrect -t 8765432109 < ping-www.google.co.in.log

:: send sms with input from command output
> ping <host> | way2sms send -u <username> -p <password> -t <to>
> ping www.google.co.in | way2sms send -u 9876543210 -p incorrect -t 8765432109

:: send sms with mr. interactive
> way2sms send -0
SEND SMS
Username: <username>
Username: 9876543210
Password: <password>
Password: incorrect
To: <to>
To: 8765432109
Message:
<message (input)>
Message:
See no evil.
Hear no evil.
Speak no evil.
^Z

cmdf

References: Way2SMS.com, a Way2Online venture, Kingster's Way2SMS unofficial PHP API.

way2sms's People

Contributors

wolfram77 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.