字母表
该插件提供了对发送短信的乌克兰服务的 API 函数的访问 Alphasms.ua
安装
将此行添加到应用程序的 Gemfile 中:
gem 'alphasms' , git : 'https://github.com/andrad/alphasms-api'
然后执行:
$ bundle
一般配置
有一个生成器可以将默认配置文件生成到 config/initializers 目录中。 运行以下生成器命令,然后编辑生成的文件。
rails g alphasms : initializer
选项:
api_key - 你的 api 密钥
sender - 自定义发件人
type - 短信类型(默认为 :xml,0 - 普通信息,1 - 快闪信息,2 - wap-push 信息)
用法
要检查余额,请使用 .balance 方法
Alphasms . balance
评论0
最新资源