Project

txyun-sms

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby Gem for using tx-sms service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 0.10, >= 0.10.0
~> 10.0
~> 3.0
 Project Readme

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.