line-bot-api 1.25.0 → 1.26.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/api/version.rb +1 -1
- data/lib/line/bot/client.rb +65 -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: 67e9d5e26c8cd5c967d2edf3ba20c16e3aa86925a5706b9d54bc4c1a9866c24e
|
4
|
+
data.tar.gz: 3309bc494169784bc4a67dd36fd6918354077f00af650bf87efe18c9e5e28450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20933038268c520b4454c1a20fc25c4594d142f4f63c9d77037dd6cc9a53f4a850a9b371a3e4deafff4bc47e1b165585282bf8c721842b34e58e347555eec01c
|
7
|
+
data.tar.gz: 5263ec06255883c1852c5dee2f3bf6f04cef03b3cedea8676af7e0a297d5eb875e5b5299b817887c8a2bcab296b4397356351ac608d058fe27435dd629496da2
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -535,6 +535,71 @@ module Line
|
|
535
535
|
get(endpoint, endpoint_path, credentials)
|
536
536
|
end
|
537
537
|
|
538
|
+
# Validate message objects of a reply message
|
539
|
+
#
|
540
|
+
# @param messages [Array] Array of message objects to validate
|
541
|
+
#
|
542
|
+
# @return [Net::HTTPResponse]
|
543
|
+
def validate_reply_message_objects(messages)
|
544
|
+
channel_token_required
|
545
|
+
|
546
|
+
endpoint_path = '/bot/message/validate/reply'
|
547
|
+
payload = { messages: messages }.to_json
|
548
|
+
post(endpoint, endpoint_path, payload, credentials)
|
549
|
+
end
|
550
|
+
|
551
|
+
# Validate message objects of a push message
|
552
|
+
#
|
553
|
+
# @param messages [Array] Array of message objects to validate
|
554
|
+
#
|
555
|
+
# @return [Net::HTTPResponse]
|
556
|
+
def validate_push_message_objects(messages)
|
557
|
+
channel_token_required
|
558
|
+
|
559
|
+
endpoint_path = '/bot/message/validate/push'
|
560
|
+
payload = { messages: messages }.to_json
|
561
|
+
post(endpoint, endpoint_path, payload, credentials)
|
562
|
+
end
|
563
|
+
|
564
|
+
# Validate message objects of a multicast message
|
565
|
+
#
|
566
|
+
# @param messages [Array] Array of message objects to validate
|
567
|
+
#
|
568
|
+
# @return [Net::HTTPResponse]
|
569
|
+
def validate_multicast_message_objects(messages)
|
570
|
+
channel_token_required
|
571
|
+
|
572
|
+
endpoint_path = '/bot/message/validate/multicast'
|
573
|
+
payload = { messages: messages }.to_json
|
574
|
+
post(endpoint, endpoint_path, payload, credentials)
|
575
|
+
end
|
576
|
+
|
577
|
+
# Validate message objects of a narrowcast message
|
578
|
+
#
|
579
|
+
# @param messages [Array] Array of message objects to validate
|
580
|
+
#
|
581
|
+
# @return [Net::HTTPResponse]
|
582
|
+
def validate_narrowcast_message_objects(messages)
|
583
|
+
channel_token_required
|
584
|
+
|
585
|
+
endpoint_path = '/bot/message/validate/narrowcast'
|
586
|
+
payload = { messages: messages }.to_json
|
587
|
+
post(endpoint, endpoint_path, payload, credentials)
|
588
|
+
end
|
589
|
+
|
590
|
+
# Validate message objects of a broadcast message
|
591
|
+
#
|
592
|
+
# @param messages [Array] Array of message objects to validate
|
593
|
+
#
|
594
|
+
# @return [Net::HTTPResponse]
|
595
|
+
def validate_broadcast_message_objects(messages)
|
596
|
+
channel_token_required
|
597
|
+
|
598
|
+
endpoint_path = '/bot/message/validate/broadcast'
|
599
|
+
payload = { messages: messages }.to_json
|
600
|
+
post(endpoint, endpoint_path, payload, credentials)
|
601
|
+
end
|
602
|
+
|
538
603
|
# Create a rich menu
|
539
604
|
#
|
540
605
|
# @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.26.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-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|