gupshup-sdk 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gupshup/restclient.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cabb7de15a135e8715f8404fa07d231195d2c20a6e73cd1f079cb270b71db7c
|
4
|
+
data.tar.gz: 01fd3d5d82cf7609abec192c7715d516adc17d855da2eb1d75adfc0498978d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 233df804d5939f90a5c24c2eaa89f7617277838e69788692a9203a2d12981707a1a22d2a5137434ba10388e7b1f10202117b5dbb7c15c406d8862681f44b2038
|
7
|
+
data.tar.gz: 230eae8d755485b4a8eb19aaf77de61e45a72cd90d9e4863d2f1cb19ae72320cb952104a2893af370546b3bab94cd34c0e5d1826357907ab5d232700f2904e52
|
data/lib/gupshup/restclient.rb
CHANGED
@@ -19,7 +19,7 @@ def self.post(apikey:,body:,url:)
|
|
19
19
|
response = http.request(request)
|
20
20
|
case response
|
21
21
|
when Net::HTTPSuccess then
|
22
|
-
return {code:200,response:response.read_body}
|
22
|
+
return {code:200,response:JSON.parse(response.read_body)}
|
23
23
|
else
|
24
24
|
return {code:response.value,response:response.read_body}
|
25
25
|
end
|