line-bot-lite 0.3.0 → 0.4.0
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 +6 -0
- data/lib/line/bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66fc937c5844b7e2a1029c753b6fa3c414b562c4
|
4
|
+
data.tar.gz: 18d5bd5d11bbd4d3a40646eba2177b25f74dab4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acfde53c219a993328939270e7e1556f98b928bd271707d85d708e2dc2b3246b1ed0e20a64ab2076101c49d5e540d2389c2d5f72588bd0daa6e7679bf386d040
|
7
|
+
data.tar.gz: b02f41bc05f1c5a3e19678dd04b3d4d7c74f76043626fa13761edf1cd8791a6e4b0ecbc97ce74d5a8f1f7fc35077ebe15ac22c52717a0605cc99138b6b68b7cc
|
data/lib/line/bot/client.rb
CHANGED
@@ -9,6 +9,12 @@ module Line
|
|
9
9
|
yield(self) if block_given?
|
10
10
|
end
|
11
11
|
|
12
|
+
def get_image(id, preview = false)
|
13
|
+
url = "#{API::ENDPOINT}/bot/message/#{id}/content"
|
14
|
+
url = "#{url}/preview" if preview
|
15
|
+
HTTP.get(url, @certentials.header)
|
16
|
+
end
|
17
|
+
|
12
18
|
def send_text(to_mid, message)
|
13
19
|
send_message(to_mid, Message::Text.new(text: message))
|
14
20
|
end
|
data/lib/line/bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: line-bot-lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 蒼時弦也
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|