Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/txyun/sms
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
######warn: Only supported template send sms !
Add this line to your application's Gemfile:
gem 'txyun-sms'
And then execute:
$ bundle
Or install it yourself as:
$ gem install txyun-sms
$ rails g txyun:sms:initializer
Txyun::Sms.configure do |config|
config.nationcode = ''
config.sign = ''
config.extend_code = ''
config.ext = ''
config.appkey = ''
config.sdkappid = ''
end
Txyun::Sms.send('13133333333', tpl_id, '000000')
Bug reports and pull requests are welcome on GitHub at https://github.com/sunjirui/txyun_sms.