line-bot-lite 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/line/bot/client.rb +2 -1
- data/lib/line/bot/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: f50d60ea204073b2d65ac1491d31f872411af8d2
|
4
|
+
data.tar.gz: 1788a0b361a69e28e1edfad9c4b8be21ccd3fb88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe15d971c3f7561cc134742223cc79cd0be8211157b050a68de70655fc5a98dfc6ed236ddda2b3fe13eac1917d2a7c2210332cc7b107eb2e352876d847276332
|
7
|
+
data.tar.gz: ac3bc9bff0e5a22a350099993cf6ef11b2db3fc9a98c056ea986fa3c18dfe404b4df32c229109809f3da496add6bfd901b704d0823b6bfde864485d86eb05e1c
|
data/lib/line/bot/client.rb
CHANGED
@@ -12,7 +12,8 @@ module Line
|
|
12
12
|
def get_image(id, preview = false)
|
13
13
|
url = "#{API::ENDPOINT}/bot/message/#{id}/content"
|
14
14
|
url = "#{url}/preview" if preview
|
15
|
-
|
15
|
+
header = @certentials.payload.inject({}) { |h, (k, v)| h[k] = v.to_s; h }
|
16
|
+
HTTP.get(url, header)
|
16
17
|
end
|
17
18
|
|
18
19
|
def send_text(to_mid, message)
|
data/lib/line/bot/version.rb
CHANGED