Skip to content
forked from flyerhzm/rfetion

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

Notifications You must be signed in to change notification settings

johnnyhg/rfetion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rfetion

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


Demo

see http://fetion.heroku.com


Install


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

Usage

  • send sms to friends or yourself

Fetion.send_sms(options)

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

  • send schedule sms to friends

Fetion.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 (flyerhzm@gmail.com), released under the MIT license

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published