kth-alimtalk 0.1.4 → 0.1.5
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/kth/alimtalk.rb +5 -1
- data/lib/kth/alimtalk/version.rb +1 -1
- 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: 0a761524d084686cb38467b3ba6f823070cdada2
|
|
4
|
+
data.tar.gz: 9ca57534bd40b556559e4eb815bdb12f0ce40b29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5403454d81e2a2b11b742c3cb6c2373f922b18f5e917844980285ef7ba2fe21a5956233edd9e8c811bd84211938a13d54e01940c70a965b0a9ba5354c7e45782
|
|
7
|
+
data.tar.gz: 236587546e93256d03fc5bdee3162d7a8bb9a9f2b5d491143c326d1272d8c424f89bf8871ed0018c08ac61eb10110f1435c7e9e80872bff9bede4e8e36e59b01
|
data/lib/kth/alimtalk.rb
CHANGED
|
@@ -106,7 +106,11 @@ module Kth
|
|
|
106
106
|
|
|
107
107
|
def send_get_request(url)
|
|
108
108
|
conn = Faraday.new(BASE_URL)
|
|
109
|
-
res = conn.get
|
|
109
|
+
res = conn.get do |req|
|
|
110
|
+
req.url url
|
|
111
|
+
req.headers[Kth::Alimtalk::CaseSensitiveString.new('x-waple-authorization')] = key
|
|
112
|
+
req.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
113
|
+
end
|
|
110
114
|
|
|
111
115
|
JSON.parse(res.body)
|
|
112
116
|
end
|
data/lib/kth/alimtalk/version.rb
CHANGED