GithubHelp home page GithubHelp logo

rfetion's Introduction

rfetion

rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.

Iā€™m still developing according to the Fetion 2010 version which adds the verification code to protect bot. You should download the version before 0.5.0 which does not trigger the verification.


Demo

see http://fetion.heroku.com


Install


gem sources -a http://gemcutter.org
gem install rfetion

Usage

  • send sms or msg to friends or yourself

Fetion.send_sms(options)
Fetion.send_msg(options)

options can be:
mobile_no
sid
password
receivers, if receivers are nil, send sms to yourself
content
logger_level

  • set schedule sms to friends

Fetion.set_schedule_sms(options)

options can be:
mobile_no
sid
password
receivers, if receivers are nil, send sms to yourself
content
time, time format is %Y-%m-%d %H:%M:%S
logger_level

  • add friend

Fetion.add_buddy(options)

options can be:
mobile_no
sid
password
friend_mobile
friend_sip
logger_level


Shell command

you can use it in shell command directly


Usage: rfetion [options]

    Example: rfetion -m mobile -p password -c sms_content
             rfetion -s sip -p password -c sms_content
             rfetion -m mobile -p password -r mobile_or_fetion_numbers -c sms_content
             rfetion -m mobile -p password -r mobile_or_fetion_numbers -c sms_content -t time
             rfetion -m mobile -p password --add-buddy-with-mobile friend_mobile
             rfetion -s sip -p password --add-buddy-with-mobile friend_mobile
             rfetion -m mobile -p password --add-buddy-with-sip friend_sip


    -m, --mobile MOBILE              Fetion mobile number
    -s, --sip FETION_SIP             Fetion sid number
    -p, --password PASSWORD          Fetion password
    -c, --content CONTENT            Fetion message content
    -r, --receivers MOBILE,SIP       Receivers' Fetion mobile numbers or fetion sip numbers, if no recievers, send sms to yourself
    -t, --time TIME                  Schedule time to send sms, format is "2009-12-10 20:00:00"
        --add-buddy-with-mobile MOBILE
                                     Add friend mobile as fetion friend
        --add-buddy-with-sip SIP     Add friend fetion sip as fetion friend

different mode:
        --debug                      debug mode
        --silence                    silence mode

Common options:
    -v, --version                    Show this version
    -h, --help                       Show this message

Copyright Ā© 2009 Richard Huang ([email protected]), released under the MIT license

rfetion's People

Contributors

flyerhzm avatar

Stargazers

 avatar

Watchers

 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.