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 +4 -4
- data/Gemfile +1 -1
- data/lib/helliomessaging_sms/version.rb +1 -1
- data/lib/helliomessaging_sms.rb +12 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e92a86833819de5d329ad65846ed5a6c791dde5
|
4
|
+
data.tar.gz: a13d3f600f712cfc354b1a230df45fec7d61f706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b59f8ee63f4966cdcb5a5590680134ff84e54e4b901b8e09921138174e3f53251eadf95192aa270e6b75bfb9004964b14545273854e57b7772eb6c07fa17f5
|
7
|
+
data.tar.gz: 335f3c5074176606525e7266b21aa65bdb1e4d6853a55df00852644c59f217396558d303ecab1b8c0f000c0ce2b4797ffc9670d739dcd93d87d4aa1eaaf3a14b
|
data/Gemfile
CHANGED
data/lib/helliomessaging_sms.rb
CHANGED
@@ -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
|
-
|
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
|
-
#
|
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-
|
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, :
|
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.
|
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-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb-fu
|