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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2b1b0e62ac703e48b3153c9214d0de1f7df4a394b485b1c1daf142744467ee4
4
- data.tar.gz: 372be3bfd378274cc8f465ff1a16b41842110b9755d22a3bcfb5e4bd4323a6af
3
+ metadata.gz: 67e9d5e26c8cd5c967d2edf3ba20c16e3aa86925a5706b9d54bc4c1a9866c24e
4
+ data.tar.gz: 3309bc494169784bc4a67dd36fd6918354077f00af650bf87efe18c9e5e28450
5
5
  SHA512:
6
- metadata.gz: b56beefbf79c9db2154e97be3e9cd82bcdea9833a17fda92e0f38c4ada37c05394ec8942e18190e8bcbbbb2566ba28a83ee81fee71bbdeb181b6f0e8326d5074
7
- data.tar.gz: 2da6d7329e36b8da62e20da99669273ff12f1478e3c6f13d892b98cfc75970b62acdc47fbdecb689066e2450574179c6c224dcf305cfbaccf754ae0872945857
6
+ metadata.gz: 20933038268c520b4454c1a20fc25c4594d142f4f63c9d77037dd6cc9a53f4a850a9b371a3e4deafff4bc47e1b165585282bf8c721842b34e58e347555eec01c
7
+ data.tar.gz: 5263ec06255883c1852c5dee2f3bf6f04cef03b3cedea8676af7e0a297d5eb875e5b5299b817887c8a2bcab296b4397356351ac608d058fe27435dd629496da2
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.25.0"
18
+ VERSION = "1.26.0"
19
19
  end
20
20
  end
21
21
  end
@@ -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.25.0
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-07-13 00:00:00.000000000 Z
11
+ date: 2022-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable