helliomessaging_sms 1.0.6 → 1.0.7
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/lib/helliomessaging_sms/version.rb +1 -1
- data/lib/helliomessaging_sms.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65c2be3835a0ea864b38d8e4e88b607018e869cd
|
4
|
+
data.tar.gz: b978f019068d461153aa53237d4cd249afc30b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8930024492e484b6c03f461b674d18ba1a2a14e87ee335058fff2184aefb07156c09d278b804869f31f2798bdb7e127c3692a3707724a7ca1a8a6a98197b8f
|
7
|
+
data.tar.gz: e8dfa53844e08cee65c11b9241b5ef2f06157aecb88f193e0d5017718a474ca26ab78e343203731bcc9bd0bc0aa96a4b8f2f36d2b89abeceebd01282eebc5ba3
|
data/lib/helliomessaging_sms.rb
CHANGED
@@ -34,12 +34,12 @@ module HellioMessaging
|
|
34
34
|
|
35
35
|
# Send SMS Using the new form of Authentication [Consumer ID and an Application Serect]
|
36
36
|
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, :
|
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 })
|
38
38
|
end
|
39
39
|
|
40
40
|
# Check for DLR's [Consumer ID and an Application Serect or Username and Password]
|
41
41
|
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, :
|
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 })
|
43
43
|
end
|
44
44
|
|
45
45
|
{:status => response.status, :notice => response.body}
|