“飞信机器人/命令行参数”的版本间的差异
来自Blueidea
< 飞信机器人
小 |
小 |
||
| 第64行: | 第64行: | ||
--action=updatepwd --mobile=[修改密码的手机号] --pwd=[新密码] --sms-code=[短信验证码] --update-pwd-url=[url] | --action=updatepwd --mobile=[修改密码的手机号] --pwd=[新密码] --sms-code=[短信验证码] --update-pwd-url=[url] | ||
| + | |||
| + | |||
| + | == 举例 == | ||
| + | fetion --mobile=135xxxxxxxx --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试 | ||
| + | 向137xxxxxxxx 手机发送内容为“测试”的短信,机器人手机号是135xxxxxxxx | ||
| + | |||
| + | fetion --sid=66xxxx --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试 | ||
| + | 向137xxxxxxxx 手机发送内容为“测试”的短信,机器人飞信号是66xxxx | ||
| + | |||
| + | fetion --config=sample.conf --index=1 --to=137xxxxxxxx --msg-gb=测试 | ||
| + | 向137xxxxxxxx 手机发送内容为“测试”的短信,机器人是sample.conf 文件中排1的帐号 | ||
| + | |||
| + | fetion --sid=66xxxx --pwd=mypwd --to=137xxxxxxxx,136xxxxx,138xxxxx --msg-gb=测试 | ||
| + | 向137xxxxxxxx,136xxxxx,138xxxxx 手机发送内容为“测试”的短信,机器人飞信号是66xxxx | ||
| + | |||
| + | '''发送消息中如果需要换行,请用 \n''' | ||
| + | |||
| + | <pre> | ||
| + | // 以下为 sample.conf 内容,文件内容中, #号为注释行 | ||
| + | # This config file is for fetion robot tool. | ||
| + | # Usage demo: ./fetion --config=/etc/fetion.conf --index=1 | ||
| + | |||
| + | # ID Mobile Password | ||
| + | 1 137xxxx 1234234 | ||
| + | </pre> | ||
2009-04-24T03:56:47的版本
飞信机器人的启动有如下的参数,以WIN32版本为例:
Version:[20090406003-win32]
| 参数 | 说明 |
|---|---|
| --mobile=[mobile] | 手机号 |
| --sid=[sid] | 飞信号 |
| --pwd=[pwd] | 密码 |
| --config=[file] | 配置文件[1] |
| --index=[ID] | 在配置文件中的ID号 |
| --debug | 记录日志到日志目录 |
| --hide | 隐身登录 |
| --to=[mobile/sid] | 把信息发送给手机号/飞信号 |
| --add=[uri] | 把信息发送给URI地址 |
| --command-path=[path] | 命令池文件夹路径 |
| --robotmode | 守护模式(仅支持linux) |
| --daemon | 读取数据和声明尺寸不一致 |
| --proxy-ip | http代理IP |
| --proxy-port | http代理端口 |
| --msg-gb=[message] | gb2312/gbk编码的信息内容 |
| --msg-utf8=[message] | UTF8编码的信息内容 |
| --msg-type=[0/1/2] | 信息类型[2] |
| --file-gb=[file] | gb2312/gbk 文件 |
| --file-utf8=[file] | UTF8文件 |
| --query-cmcc-no | 查询移动公司手机段,检查手机号是否合法 |
| --testaccount | 测试帐号[3] |
| --auto-retry | 自动重连功能 |
注释说明
以下为特殊启动参数,可以用于 web网站集成注册、修改密码
--action=getpiccode --mobile=13910000000 --pwd=任意 (--piccode-url=[url]) 返回图形验证码,base64解码后,就是图形验证码图片
--action=appsubscribe --mobile=[注册手机号] --pwd=[任意] --pic-certificate-id=[certid] --pic-cert-code=[certcode] --apply-sub-service-url=[url] 提交验证码ID,图形识别码,手机号
--action=subscribe --mobile=[注册手机号] --pwd=[密码] --sms-code=[短信验证码] --subscribe-url=[url]
--action=updatepwd --mobile=[修改密码的手机号] --pwd=[新密码] --sms-code=[短信验证码] --update-pwd-url=[url]
举例
fetion --mobile=135xxxxxxxx --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试
向137xxxxxxxx 手机发送内容为“测试”的短信,机器人手机号是135xxxxxxxx
fetion --sid=66xxxx --pwd=mypwd --to=137xxxxxxxx --msg-gb=测试
向137xxxxxxxx 手机发送内容为“测试”的短信,机器人飞信号是66xxxx
fetion --config=sample.conf --index=1 --to=137xxxxxxxx --msg-gb=测试
向137xxxxxxxx 手机发送内容为“测试”的短信,机器人是sample.conf 文件中排1的帐号
fetion --sid=66xxxx --pwd=mypwd --to=137xxxxxxxx,136xxxxx,138xxxxx --msg-gb=测试
向137xxxxxxxx,136xxxxx,138xxxxx 手机发送内容为“测试”的短信,机器人飞信号是66xxxx
发送消息中如果需要换行,请用 \n
// 以下为 sample.conf 内容,文件内容中, #号为注释行 # This config file is for fetion robot tool. # Usage demo: ./fetion --config=/etc/fetion.conf --index=1 # ID Mobile Password 1 137xxxx 1234234