Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

coolsms REST API helper, coolsms ruby client

License

NotificationsYou must be signed in to change notification settings

jun85664396/coolsms-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Test

$ ruby test/coolsms_test.rb -v

Configuration

  • ENV['COOLSMS_KEY'] andENV['COOLSMS_SECRET_KEY']

Usage

Send < Applications

COOLSMS_SEND=Coolsms::SMS::Send.new({options})COOLSMS_SEND.send(from,to,text)COOLSMS_SEND.set_field({options})
  • Options

    • type
    • image
    • image_encoding
    • refname
    • country
    • datetime
    • subject
    • charset
    • srk
    • mode
    • extension
    • delay
    • force_sms
    • os_platform
    • dev_lang
    • sdk_version
    • app_version
    • sender_key
    • template_code
  • Methods

    • send
    • set_field

Balance

COOLSMS_BALANCE=Coolsms::SMS::Balance.newCOOLSMS_BALANCE.balance
  • Methods
    • balance

Status < Applications

COOLSMS_STATUS=Coolsms::SMS::Status.new(options)COOLSMS_STATUS.status
  • Options

    • count
    • unit
    • date
    • channel
  • Methods

    • status

Sent < Applications

COOLSMS_SENT=Coolsms::SMS::Sent.new(options)COOLSMS_SENT.sent
  • Options

    • count
    • page
    • rcpt
    • start
    • end
    • status
    • resultcode
    • notin_resultcode
    • mid
    • gid
  • Methods

    • sent

Cancel < Applications

COOLSMS_CANCEL=Coolsms::SMS::Cancel.new(options)COOLSMS_CANCEL.cancel
  • Options

    • mid
    • gid
  • Methods

    • cancel

Applications

  • Methods
    • set_fields
    • fields

TODO

  • Send
  • Sent
  • Cancel
  • Balance
  • Status

Coolsms Rest API Document

Contributing

  1. Fork it (https://github.com/[my-github-username]/coolsms/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Source

https://github.com/jun85664396/coolsms

About

coolsms REST API helper, coolsms ruby client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp