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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4108642d7cf05f0f56a432205d3544a3b50b3eb
4
- data.tar.gz: f2e1f8721ccc4dbcee10056f2c8fbff57d81f141
3
+ metadata.gz: 0a761524d084686cb38467b3ba6f823070cdada2
4
+ data.tar.gz: 9ca57534bd40b556559e4eb815bdb12f0ce40b29
5
5
  SHA512:
6
- metadata.gz: 03576f522b055f7c3de93a934db03a9f11ad4de426ba1d1904f34f403011b6b044dea3771c0dcc65a16eb285183497327467b2e270802acf063141e9f5d3ce0a
7
- data.tar.gz: e16ccc949e36614f7876ab19cf196e0f7dd02cde3a5a3625311ce3924a1691bef43d12293f45fe4ca6cf92585693d14ef31784179515adf1b3d704d0e0590430
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(url)
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
@@ -1,5 +1,5 @@
1
1
  module Kth
2
2
  module Alimtalk
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kth-alimtalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyoungwon Lee