line-bot-api 1.4.1 → 1.5.1
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/line/bot/api/version.rb +1 -1
- data/lib/line/bot/client.rb +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e092d32113b5b56c027829c1b43766331a83331a9732c49da68b6abe8475592
|
4
|
+
data.tar.gz: 3b6d68a19d1884f5d4b899cb433d783b6a1bfc808d5a77a90d0e6fd18893fc20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab1a90613104945ee7ebba37310e9646c90b3bbb73f849e9a2d034aba93a9f1c77563f67321eb79823a71d2f85c3acde424512b964f01f60d7889b737129320a
|
7
|
+
data.tar.gz: f0b7fb88773d85881e9afc6f7eac1e4a9e7bf6f39e9d1e3b5276d271a7f27577986328277f876a74c1af7377a3e2d73200c1169f4c4b714140938c6cc4c7e71e
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -243,6 +243,36 @@ module Line
|
|
243
243
|
get(endpoint_path)
|
244
244
|
end
|
245
245
|
|
246
|
+
# Gets the number of messages sent with the /bot/message/reply endpoint.
|
247
|
+
#
|
248
|
+
# @param date [String] Date the messages were sent (format: yyyyMMdd)
|
249
|
+
#
|
250
|
+
# @return [Net::HTTPResponse]
|
251
|
+
def get_message_delivery_reply(date)
|
252
|
+
endpoint_path = "/bot/message/delivery/reply?date=#{date}"
|
253
|
+
get(endpoint_path)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Gets the number of messages sent with the /bot/message/push endpoint.
|
257
|
+
#
|
258
|
+
# @param date [String] Date the messages were sent (format: yyyyMMdd)
|
259
|
+
#
|
260
|
+
# @return [Net::HTTPResponse]
|
261
|
+
def get_message_delivery_push(date)
|
262
|
+
endpoint_path = "/bot/message/delivery/push?date=#{date}"
|
263
|
+
get(endpoint_path)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Gets the number of messages sent with the /bot/message/multicast endpoint.
|
267
|
+
#
|
268
|
+
# @param date [String] Date the messages were sent (format: yyyyMMdd)
|
269
|
+
#
|
270
|
+
# @return [Net::HTTPResponse]
|
271
|
+
def get_message_delivery_multicast(date)
|
272
|
+
endpoint_path = "/bot/message/delivery/multicast?date=#{date}"
|
273
|
+
get(endpoint_path)
|
274
|
+
end
|
275
|
+
|
246
276
|
# Create a rich menu
|
247
277
|
#
|
248
278
|
# @param rich_menu [Hash] The rich menu represented as a rich menu object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: line-bot-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LINE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|