line-bot-api 1.8.0 → 1.9.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 +19 -0
- 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: f0ff5d8836d29365dc8f80d7caa234495228cbef
|
4
|
+
data.tar.gz: f34e7b75396dcc7cf41a1eb98cdbc2c4737c62ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6242c7d7b6b63933e3f125eb7c68c92f5a8b0811220e656219e659567829df1cf57ec8144e055b38f27b68502bca232577bd2f7d9fe00c86d0da3cd1b189f5cb
|
7
|
+
data.tar.gz: af71e03c0d02a5ff32eadbe58e026df8cc78ef0d45925adb1558335d868e4145cb5cdfe5bf774ce781a6c6b6b45c041566c781d4c5d73e2f67d3c62614ac3910
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -363,6 +363,25 @@ module Line
|
|
363
363
|
delete(endpoint_path)
|
364
364
|
end
|
365
365
|
|
366
|
+
# To link a rich menu to multiple users at a time
|
367
|
+
#
|
368
|
+
# @param user_ids [Array] ID of the user
|
369
|
+
# @param rich_menu_id [String] ID of the uploaded rich menu
|
370
|
+
#
|
371
|
+
# @return [Net::HTTPResponse]
|
372
|
+
def bulk_link_rich_menus(user_ids, rich_menu_id)
|
373
|
+
post("/bot/richmenu/bulk/link", {richMenuId: rich_menu_id, userIds: user_ids}.to_json)
|
374
|
+
end
|
375
|
+
|
376
|
+
# To unlink a rich menu from multiple users at a time
|
377
|
+
#
|
378
|
+
# @param user_ids [Array] ID of the user
|
379
|
+
#
|
380
|
+
# @return [Net::HTTPResponse]
|
381
|
+
def bulk_unlink_rich_menus(user_ids)
|
382
|
+
post("/bot/richmenu/bulk/unlink", {userIds: user_ids}.to_json)
|
383
|
+
end
|
384
|
+
|
366
385
|
# Download an image associated with a rich menu
|
367
386
|
#
|
368
387
|
# @param rich_menu_id [String] ID of an uploaded rich menu
|
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.9.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: 2019-
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|