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.
- data/README.md +16 -2
- data/lib/imobis_api/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ImobisApi
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
data/lib/imobis_api/version.rb
CHANGED