Skip to content

kennethjohnbalgos/wiser_sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiserSms

Medium Rare Outgoing SMS

Requirements

WiserSms only support Rails >= 3.x.

Networks

WiserSms::Ph only supports Globe Telecom, Smart Communications, and Sun Cellular networks.

..more to come..

Setup

You can do normal gem installation in terminal:

    $ gem install wiser_sms

or include it in your Gemfile:

  gem 'wiser_sms', '~> 0.1.2'

Then restart your application.

Usage

Security

To avoid abuse, the key string parameter is now requred for all requests. It serves as a password to successfully send SMS.

Note: To request for password, email the purpose of usage to kennethjohnbalgos@gmail.com.

Request

To send SMS for single receiver, pass the string 11-digit string mobile mobile number and message using the send method:

   WiserSms::Ph.send("password_hash", "091711292013", "You really did it!")

To send SMS for multiple receivers, pass the array of 11-digit string mobile number instead:

   WiserSms::Ph.send("password_hash", ["091711292013","091711302013"], "You guys really did it!")

Note: If you send the receiver's mobile number more than once, the message will still be sent once.

Response

All responses will come in hash with the status for each mobile number passed to the send method.

Here's an example:

  {"091711292013" => true, "091711302013" => true, "123" => nil}

Statuses

Response Which Means
(BOOL) true Message Sent
(BOOL) false Sending Failed
(NULL) nil Invalid Mobile Number
(INTEGER) 0 Invalid Key/Password

Contributing

  1. Fork it
  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 new Pull Request

Support

Open an issue in https://github.com/kennethjohnbalgos/wiser_sms if you need further support or want to report a bug.

License

The MIT License (MIT) Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Medium Rare Outgoing SMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages