Skip to content

edg3r/smspilot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Smspilot

Ruby gem for smspilot.ru API

http://www.smspilot.ru/download/SMSPilotRu-HTTP-v2.1.2.rtf

Installation

Add this line to your application's Gemfile:

gem 'smspilot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install smspilot

Usage

create

client = Smspilot.new api_key
#or
client = Smspilot.new (api_key: "yourkey", login: "yourlogin", password: "yourpass")

api methods

result = client.send_sms(sms_id, sms_from, sms_to, message_text)

result = client.check_sms_status(sms_server_id)

result = client.check_balance

Use bang! methods if you want errors to be raised. Otherwise access them through

result.error

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

gem for working with smspilot API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages