【文件属性】:
文件名称:zenvia:zenvia短信API包装
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-01 21:48:21
曾维亚
待办事项:撰写宝石说明
安装
将此行添加到应用程序的Gemfile中:
gem 'zenvia'
然后执行:
$ bundle
或将其自己安装为:
$ gem install zenvia
用法
传送讯息
sms = Zenvia :: Sms . new 'number' , 'message'
sms . send
设定档
Zenvia . configure do | config |
config . account = ENV [ "ZENVIA_ACCOUNT" ]
config . code = ENV [ "ZENVIA_CODE" ]
end
贡献
分叉( )
创建功能分支( git checkout -b my-new-feature )
提交更改( git commit -am 'Add some feature' )
【文件预览】:
zenvia-master
----.gitignore(142B)
----README.md(1003B)
----Gemfile(148B)
----zenvia.gemspec(1KB)
----Azkfile.js(544B)
----config()
--------locales()
----spec()
--------zenvia()
--------fixtures()
--------spec_helper.rb(480B)
----LICENSE.txt(1KB)
----lib()
--------zenvia()
--------zenvia.rb(568B)
----Rakefile(29B)