Skip to content

sunjirui/txyun_sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Txyun::Sms

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 !

Installation

Add this line to your application's Gemfile:

gem 'txyun-sms'

And then execute:

$ bundle

Or install it yourself as:

$ gem install txyun-sms

Usage

$ rails g txyun:sms:initializer

Configure

Txyun::Sms.configure do |config|
  config.nationcode = ''
  config.sign = ''
  config.extend_code = ''
  config.ext = ''
  config.appkey = ''
  config.sdkappid = ''
end

Example

Txyun::Sms.send('13133333333', tpl_id, '000000')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sunjirui/txyun_sms.

About

Tecent sms business

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published