rfetion
rfetion is a ruby gem for China Mobile fetion service that you can send SMS free.
Demo
Install
gem sources -a http://gemcutter.org
gem install rfetion
Usage
send sms to yourself
Fetion.send_sms_to_self(mobile_no, password, content)
send sms to friends
Fetion.send_sms_to_friends(mobile_no, password, friends_mobile_or_fetion_number, content)
add friend with mobile
Fetion.add_buddy_with_mobile(mobile_no, password, friend_mobile)
add friend with sip
Fetion.add_buddy_with_sip(mobile_no, password, friend_sip)
Shell command
you can use it in shell command directly
Usage: rfetion [options]
Example: rfetion -m mobile -p password -f friends_mobile_or_fetion_number -c sms_content
rfetion -m mobile -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
-p, --password PASSWORD Fetion password
-c, --content CONTENT Fetion message content
-f, --friends MOBILE,FETION (optional) Fetion friends mobile number or fetion number, if no friends mobile number and fetion number, send message to yourself
--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
Add a Comment