helliomessaging_sms 1.0.7 → 1.0.8

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: 65c2be3835a0ea864b38d8e4e88b607018e869cd
4
- data.tar.gz: b978f019068d461153aa53237d4cd249afc30b34
3
+ metadata.gz: 7e92a86833819de5d329ad65846ed5a6c791dde5
4
+ data.tar.gz: a13d3f600f712cfc354b1a230df45fec7d61f706
5
5
  SHA512:
6
- metadata.gz: 4a8930024492e484b6c03f461b674d18ba1a2a14e87ee335058fff2184aefb07156c09d278b804869f31f2798bdb7e127c3692a3707724a7ca1a8a6a98197b8f
7
- data.tar.gz: e8dfa53844e08cee65c11b9241b5ef2f06157aecb88f193e0d5017718a474ca26ab78e343203731bcc9bd0bc0aa96a4b8f2f36d2b89abeceebd01282eebc5ba3
6
+ metadata.gz: 73b59f8ee63f4966cdcb5a5590680134ff84e54e4b901b8e09921138174e3f53251eadf95192aa270e6b75bfb9004964b14545273854e57b7772eb6c07fa17f5
7
+ data.tar.gz: 335f3c5074176606525e7266b21aa65bdb1e4d6853a55df00852644c59f217396558d303ecab1b8c0f000c0ce2b4797ffc9670d739dcd93d87d4aa1eaaf3a14b
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in smsgh_sms.gemspec
3
+ # Specify your gem's dependencies in helliomessaging_sms.gemspec
4
4
  gemspec
@@ -1,3 +1,3 @@
1
1
  module HellioMessaging
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -27,19 +27,26 @@ module HellioMessaging
27
27
  response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms?'}, { :from => sender_id, :to => options[:to], :text => message, :username => @@api_username, :password => @@api_password })
28
28
  end
29
29
 
30
- # Check Your Account Balance
30
+
31
+ # Send SMS Using the new form of Authentication [Consumer ID and an Application Serect]
32
+ if @@api_consumer_key != nil && @@api_application_secret != nil
33
+ response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms?', :protocol => 'http'}, { :From => sender_id, :To => options[:to], :Content => message, :ConsumerKey => @@api_consumer_key, :ApplicationSecret => @@api_application_secret })
34
+ end
35
+
36
+ # Check Your Account Balance (Old Authentication)
31
37
  if @@api_username != nil && @@api_password != nil
32
- response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-bal?'}, { :username => @@api_username, :password => @@api_password })
38
+ response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-bal?', :protocol => 'http'}, { :username => @@api_username, :password => @@api_password })
33
39
  end
34
40
 
35
- # Send SMS Using the new form of Authentication [Consumer ID and an Application Serect]
41
+ # Check Your Account Balance (New Authentication: Consumer Key and Application Secret)
36
42
  if @@api_consumer_key != nil && @@api_application_secret != nil
37
- response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-dlr?', :protocol => 'http'}, { :From => sender_id, :To => options[:to], :Content => message, :ClientKey => @@api_consumer_key, :ApplicationSecret => @@api_application_secret })
43
+ response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-bal?', :protocol => 'http'}, { :ConsumerKey => @@api_consumer_key, :ApplicationSecret => @@api_application_secret })
38
44
  end
39
45
 
46
+
40
47
  # Check for DLR's [Consumer ID and an Application Serect or Username and Password]
41
48
  if @@api_consumer_key != nil && @@api_application_secret != nil
42
- response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-dlr?', :protocol => 'http'}, { :From => sender_id, :To => options[:to], :Content => message, :ClientKey => @@api_consumer_key, :ApplicationSecret => @@api_application_secret })
49
+ response = CurbFu.get({:host => 'app.helliomessaging.com/api', :path => '/sms-dlr?', :protocol => 'http'}, { :From => sender_id, :To => options[:to], :Content => message, :ConsumerKey => @@api_consumer_key, :ApplicationSecret => @@api_application_secret })
43
50
  end
44
51
 
45
52
  {:status => response.status, :notice => response.body}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helliomessaging_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert A. Ninyeh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-03 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb-fu