imobis_api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +16 -2
  2. data/lib/imobis_api/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ImobisApi
2
2
 
3
- TODO: Write a gem description
3
+ Work with api imobis (https://sms.imobis.ru/)
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,8 +18,22 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Include gem:
22
22
 
23
+ require "imobis_api"
24
+
25
+ Create instance a class:
26
+
27
+ im_api = ImobisApi::Api.new("login", "passwd")
28
+
29
+ Use:
30
+
31
+ puts im_api.get_balance #return balance or error code
32
+ puts im_api.get_sender #return availeble sender name
33
+ puts im_api.sendsms('Test','Test', [["79876543210","test-1"],["79876543211","test-2"]]) Sende sms and return balance and id
34
+ #or im_api.sendsms('Test', 'Test', [["79876543210]])
35
+ puts im_api.check_number(["79876543210"]) #Check phone number
36
+ puts im_api.get_state(["79876543210"]) #Get statistic
23
37
  ## Contributing
24
38
 
25
39
  1. Fork it
@@ -1,3 +1,3 @@
1
1
  module ImobisApi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imobis_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: