libring 1.0.13 → 1.0.14
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/libring/api.rb +6 -6
- 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: d56ce2a2deffb9ebe5ecb8dc27ec65455978f871
|
|
4
|
+
data.tar.gz: 6098aa42b2a710d2fa1e4b57898d402533def659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fe136c95b95556a2001a0fb2fafec0e655f59fb1c2866d711433a2ed7ec381a4a47d63f97e1e7035f63e58343073f0463737733395cf7543cfe78fc47612c4b
|
|
7
|
+
data.tar.gz: 2a1ab0b60b1470c26acc32658573ef22c4ee2ca33f2cb05430ace6328bf90c597b435d28e3cfc609e1f7fde1ea0951c717e42e2a5ca59c301b9ebb9ca3f54c8f
|
data/lib/libring/api.rb
CHANGED
|
@@ -23,7 +23,7 @@ class Libring::API
|
|
|
23
23
|
uri = URI.parse("http://api-clv.libring.com/v2/event_tracker")
|
|
24
24
|
|
|
25
25
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
26
|
-
https.use_ssl =
|
|
26
|
+
https.use_ssl = false
|
|
27
27
|
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
28
28
|
|
|
29
29
|
req = Net::HTTP::Post.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
@@ -57,7 +57,7 @@ class Libring::API
|
|
|
57
57
|
uri = URI.parse("http://api-clv.libring.com/v2/contact/get/" + contact_code.to_s)
|
|
58
58
|
|
|
59
59
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
60
|
-
https.use_ssl =
|
|
60
|
+
https.use_ssl = false
|
|
61
61
|
|
|
62
62
|
req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
63
63
|
|
|
@@ -76,7 +76,7 @@ class Libring::API
|
|
|
76
76
|
uri = URI.parse("http://api-clv.libring.com/v2/contact/put")
|
|
77
77
|
|
|
78
78
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
79
|
-
https.use_ssl =
|
|
79
|
+
https.use_ssl = false
|
|
80
80
|
|
|
81
81
|
req = Net::HTTP::Post.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
82
82
|
|
|
@@ -101,7 +101,7 @@ class Libring::API
|
|
|
101
101
|
uri = URI.parse("http://api-clv.libring.com/v2/messages/get/" + contact_code.to_s)
|
|
102
102
|
|
|
103
103
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
104
|
-
https.use_ssl =
|
|
104
|
+
https.use_ssl = false
|
|
105
105
|
|
|
106
106
|
req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
107
107
|
|
|
@@ -120,7 +120,7 @@ class Libring::API
|
|
|
120
120
|
uri = URI.parse("http://api-clv.libring.com/v2/messages/get_all")
|
|
121
121
|
|
|
122
122
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
123
|
-
https.use_ssl =
|
|
123
|
+
https.use_ssl = false
|
|
124
124
|
|
|
125
125
|
req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
126
126
|
|
|
@@ -139,7 +139,7 @@ class Libring::API
|
|
|
139
139
|
uri = URI.parse("http://api-clv.libring.com/v2/clv/get/" + contact_code.to_s)
|
|
140
140
|
|
|
141
141
|
https = Net::HTTP.new(uri.host, uri.port)
|
|
142
|
-
https.use_ssl =
|
|
142
|
+
https.use_ssl = false
|
|
143
143
|
|
|
144
144
|
req = Net::HTTP::Get.new(uri.request_uri, initheader = {'Content-Type' =>'application/json', 'Authorization' => "Token #{@token}"})
|
|
145
145
|
|