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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9c8979c599240209f74ff04ebcce0184876fa32
4
- data.tar.gz: 272f486d381f98f7f464873fbba6016dc7b3b728
3
+ metadata.gz: 66fc937c5844b7e2a1029c753b6fa3c414b562c4
4
+ data.tar.gz: 18d5bd5d11bbd4d3a40646eba2177b25f74dab4c
5
5
  SHA512:
6
- metadata.gz: 98390a9ea5586624889f83c4052b1c8c68049904f4a9bd876c859bc58c31e1620c5e338b29672097729da99381ace86d6729612f4907fe6bec09814150e07117
7
- data.tar.gz: 52673d5b8bdc430aae2042619607d611d7d4d99a6181aa01e056c2d7deda66dde43d54e15c5a55f54ca131d097cd405ddcdc593c292d07ea869b1704ddb8b633
6
+ metadata.gz: acfde53c219a993328939270e7e1556f98b928bd271707d85d708e2dc2b3246b1ed0e20a64ab2076101c49d5e540d2389c2d5f72588bd0daa6e7679bf386d040
7
+ data.tar.gz: b02f41bc05f1c5a3e19678dd04b3d4d7c74f76043626fa13761edf1cd8791a6e4b0ecbc97ce74d5a8f1f7fc35077ebe15ac22c52717a0605cc99138b6b68b7cc
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Line
2
2
  module Bot
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
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.3.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-25 00:00:00.000000000 Z
11
+ date: 2016-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler