使用sms.ru服务发送短信。
pysmsru的Python项目详细描述
从文件中读取默认api id:
linux:$home/.smssendrc
windows:userprofile%/.smssendrc
示例用法:
(可选)
time=10-以Unix时间格式发送时间(可选)
translit=true none false-将消息转换为translit
http_timeout=10 none-http连接超时(可选,默认值为10)
)
smsru.send_one(phone_to='79121234567',message='hello world!')
smsru.send_scope(phones_to=['79120123456','79120012345',message='hello world!')
linux:$home/.smssendrc
windows:userprofile%/.smssendrc
示例用法:
(可选)
time=10-以Unix时间格式发送时间(可选)
translit=true none false-将消息转换为translit
http_timeout=10 none-http连接超时(可选,默认值为10)
)
smsru.send_one(phone_to='79121234567',message='hello world!')
smsru.send_scope(phones_to=['79120123456','79120012345',message='hello world!')