line-bot-api 1.24.0 → 1.25.0
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 +20 -8
- 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: d2b1b0e62ac703e48b3153c9214d0de1f7df4a394b485b1c1daf142744467ee4
|
4
|
+
data.tar.gz: 372be3bfd378274cc8f465ff1a16b41842110b9755d22a3bcfb5e4bd4323a6af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b56beefbf79c9db2154e97be3e9cd82bcdea9833a17fda92e0f38c4ada37c05394ec8942e18190e8bcbbbb2566ba28a83ee81fee71bbdeb181b6f0e8326d5074
|
7
|
+
data.tar.gz: 2da6d7329e36b8da62e20da99669273ff12f1478e3c6f13d892b98cfc75970b62acdc47fbdecb689066e2450574179c6c224dcf305cfbaccf754ae0872945857
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -211,7 +211,7 @@ module Line
|
|
211
211
|
# Push messages to a user using user_id.
|
212
212
|
#
|
213
213
|
# @param user_id [String] User Id
|
214
|
-
# @param messages [Hash
|
214
|
+
# @param messages [Hash, Array] Message Objects
|
215
215
|
# @param headers [Hash] HTTP Headers
|
216
216
|
# @param payload [Hash] Additional request body
|
217
217
|
# @return [Net::HTTPResponse]
|
@@ -243,7 +243,7 @@ module Line
|
|
243
243
|
# client.reply_message(event['replyToken'], messages)
|
244
244
|
#
|
245
245
|
# @param token [String] Reply Token
|
246
|
-
# @param messages [Hash
|
246
|
+
# @param messages [Hash, Array] Message Objects
|
247
247
|
# @return [Net::HTTPResponse]
|
248
248
|
def reply_message(token, messages)
|
249
249
|
channel_token_required
|
@@ -257,8 +257,8 @@ module Line
|
|
257
257
|
|
258
258
|
# Send messages to multiple users using userIds.
|
259
259
|
#
|
260
|
-
# @param to [Array
|
261
|
-
# @param messages [Hash
|
260
|
+
# @param to [Array, String] Array of userIds
|
261
|
+
# @param messages [Hash, Array] Message Objects
|
262
262
|
# @param headers [Hash] HTTP Headers
|
263
263
|
# @param payload [Hash] Additional request body
|
264
264
|
# @return [Net::HTTPResponse]
|
@@ -275,7 +275,7 @@ module Line
|
|
275
275
|
|
276
276
|
# Send messages to all friends.
|
277
277
|
#
|
278
|
-
# @param messages [Hash
|
278
|
+
# @param messages [Hash, Array] Message Objects
|
279
279
|
# @param headers [Hash] HTTP Headers
|
280
280
|
#
|
281
281
|
# @return [Net::HTTPResponse]
|
@@ -294,7 +294,7 @@ module Line
|
|
294
294
|
# API Documentation is here.
|
295
295
|
# https://developers.line.biz/en/reference/messaging-api/#send-narrowcast-message
|
296
296
|
#
|
297
|
-
# @param messages [Hash
|
297
|
+
# @param messages [Hash, Array]
|
298
298
|
# @param recipient [Hash]
|
299
299
|
# @param filter [Hash]
|
300
300
|
# @param limit [Hash]
|
@@ -547,6 +547,18 @@ module Line
|
|
547
547
|
post(endpoint, endpoint_path, rich_menu.to_json, credentials)
|
548
548
|
end
|
549
549
|
|
550
|
+
# Validate a rich menu object
|
551
|
+
#
|
552
|
+
# @param rich_menu [Hash] The rich menu represented as a rich menu object
|
553
|
+
#
|
554
|
+
# @return [Net::HTTPResponse]
|
555
|
+
def validate_rich_menu_object(rich_menu)
|
556
|
+
channel_token_required
|
557
|
+
|
558
|
+
endpoint_path = '/bot/richmenu/validate'
|
559
|
+
post(endpoint, endpoint_path, rich_menu.to_json, credentials)
|
560
|
+
end
|
561
|
+
|
550
562
|
# Delete a rich menu
|
551
563
|
#
|
552
564
|
# @param rich_menu_id [String] ID of an uploaded rich menu
|
@@ -1101,7 +1113,7 @@ module Line
|
|
1101
1113
|
#
|
1102
1114
|
# @param endpoint_base [String]
|
1103
1115
|
# @param endpoint_path [String]
|
1104
|
-
# @param payload [String
|
1116
|
+
# @param payload [String, NilClass]
|
1105
1117
|
# @param headers [Hash]
|
1106
1118
|
#
|
1107
1119
|
# @return [Net::HTTPResponse]
|
@@ -1114,7 +1126,7 @@ module Line
|
|
1114
1126
|
#
|
1115
1127
|
# @param endpoint_base [String]
|
1116
1128
|
# @param endpoint_path [String]
|
1117
|
-
# @param payload [String
|
1129
|
+
# @param payload [String, NilClass]
|
1118
1130
|
# @param headers [Hash]
|
1119
1131
|
#
|
1120
1132
|
# @return [Net::HTTPResponse]
|
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.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LINE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|