coolsms Rest API helper
Add this line to your application's Gemfile:
gem 'coolsms'And then execute:
$ bundle
Or install it yourself as:
$ gem install coolsms
Test
$ ruby test/coolsms_test.rb -v
ENV['COOLSMS_KEY']andENV['COOLSMS_SECRET_KEY']
-
####Send < Applications
COOLSMS_SEND = Coolsms::SMS::Send.new( { options } ) COOLSMS_SEND.send( from, to, text) COOLSMS_SEND.set_field( { options} )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 < Applications
COOLSMS_STATUS = Coolsms::SMS::Status.new( options ) COOLSMS_STATUS.statusOptions
- count
- unit
- date
- channel
Methods
- status
-
####Sent < Applications
COOLSMS_SENT = Coolsms::SMS::Sent.new( options ) COOLSMS_SENT.sentOptions
- count
- page
- rcpt
- start
- end
- status
- resultcode
- notin_resultcode
- mid
- gid
Methods
- sent
-
####Cancel < Applications
COOLSMS_CANCEL = Coolsms::SMS::Cancel.new( options ) COOLSMS_CANCEL.cancelOptions
- mid
- gid
Methods
- cancel
-
####Applications
Methods
- set_fields
- fields
-
####TODO
- [O] Send
- [O] Sent
- [O] Cancel
- [O] Balance
- [O] Status
http://www.coolsms.co.kr/REST_API_Global
- 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