Coolsms
coolsms Rest API helper
Installation
Add this line to your application's Gemfile:
gem 'coolsms'
And then execute:
$ bundle
Or install it yourself as:
$ gem install coolsms
Configuration
ENV['COOLSMS_KEY']andENV['COOLSMS_SECRET_KEY']
Usage
Send
COOLSMS_SEND = Coolsms::SMS::Send.new( { } ) COOLSMS_SEND.send( from, to, text) COOLSMS_SEND.set_field( { } )Options
- type
- charset
- datetime
- delay
- refname
- country
- subject
- srk
- mode
- extension
- force_sms
Methods
- send
- set_field
Balance
COOLSMS_BALANCE = Coolsms::SMS::Balance.new COOLSMS_BALANCE.balanceMethods
- balance
Status
COOLSMS_STATUS = Coolsms::SMS::Balance.new( ) COOLSMS_STATUS.statusOptions
- count
- unit
- date
- channel
Methods
- status
Coolsms Rest API Document
http://www.coolsms.co.kr/REST_API_Global
Contributing
- Fork it ( https://github.com/[my-github-username]/coolsms/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request