Project

rfetion

0.03
No commit activity in last 3 years
No release in over 3 years
rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

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