ImobisApi
Work with api imobis (https://sms.imobis.ru/)
Installation
Add this line to your application's Gemfile:
gem 'imobis_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install imobis_api
Usage
Include gem:
require "imobis_api"
Create instance a class:
im_api = ImobisApi::Api.new("login", "passwd")
Use:
puts im_api.get_balance #return balance or error code
puts im_api.get_sender #return availeble sender name
puts im_api.sendsms('Test','Test', [["79876543210","test-1"],["79876543211","test-2"]]) Sende sms and return balance and id
#or im_api.sendsms('Test', 'Test', [["79876543210]])
puts im_api.check_number(["79876543210"]) #Check phone number
puts im_api.get_state(["79876543210"]) #Get statistic
Contributing
- Fork it
- 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 new Pull Request