sms_area_api 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5d39d06687b57eacd2928e2dc9c442ce365a900
4
- data.tar.gz: ed31efec771ba2cbfe10039ded1949916fb263c0
3
+ metadata.gz: 68b4f75158ad0ba1d5b487cdc6af0cdadb4dd9ce
4
+ data.tar.gz: b6698e5a4e10787b5287cafb9b026b7f7e6cbe00
5
5
  SHA512:
6
- metadata.gz: f7c826f0cbccc63cdf0fb522657b28c6f47d0a960bcea3ea160e54da059a57cf37d593126bdd3130b192b31b28a20bdec39ea522b36d9975aee55cd9d224f7b5
7
- data.tar.gz: b8b86e6b1f117a25d3b508d4adddb08a606f985d31e6de76bdd02e268e974083c1f165ca11b44397da8e001acd7034eeff3271fd533ed80fc49953128a9b0915
6
+ metadata.gz: 64310e266e602200e77858f357be1e94ff53f9f505acdf62786ce051e39a83785ddc2a2c02e972f726a2a75edb421be857ffde6c941bdbad4addff1be5dd8711
7
+ data.tar.gz: d393207153ea47f64a1725e6f767ea28f2318f0f8fc73ca60651dfb7ac592c2c6e10db9ce28871643a0bbd9cd23a66e55ae238407deab5d7110823581635e3aa
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # SmsAreaApi
2
2
 
3
- TODO: Write a gem description
3
+ A Ruby wrapper for sms-area.org API.
4
+ Documentation for API is here: http://sms-area.org/api.txt
4
5
 
5
6
  ## Installation
6
7
 
@@ -20,7 +21,18 @@ Or install it yourself as:
20
21
 
21
22
  ## Usage
22
23
 
23
- TODO: Write usage instructions here
24
+ ``` ruby
25
+ # create a client
26
+ sms_area = SmsAreaApi::Client.new('1111111111111111111111')
27
+
28
+ # use snake_case instead of camelCase
29
+ sms_area.get_balance
30
+ # => {:state=>"ACCESS_BALANCE", :balance=>"26.5"}
31
+
32
+ # request a number
33
+ number = sms_area.get_number country: 'or', service: 'gm', count: 1
34
+ # => {:state=>"ACCESS_NUMBER", :id=>"111111", :access_number=>"12223334444"}
35
+ ```
24
36
 
25
37
  ## Contributing
26
38
 
@@ -1,3 +1,3 @@
1
1
  module SmsAreaApi
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_area_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vladzaets