line-bot-api 1.17.0 → 1.18.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: e837c0acd52ebd33855c78b8708ad54ab2837dc76576bb386bbe4861eeae20e3
4
- data.tar.gz: 9e175c41953a8603f0a1b0e35285160fe2ed63cf028296a94272a6d65dac4a9f
3
+ metadata.gz: 23b8ceb7011bc2da255888239f7d9a26622ea7713f8fb6154c8aa4637c5c0be0
4
+ data.tar.gz: 885e68bbd4485d411f5e79e1bfc1aa2a29e9d6c07d64d91db22cd4387c0d334d
5
5
  SHA512:
6
- metadata.gz: 303b7cd0c88d07dd31fa5d4ee3d0784ba7999fb4677bd9bf3a801adad54d8926e0697ae87dc0a457593849fba0d30e2ddbeb4eba647adac5974115ad81a56b58
7
- data.tar.gz: 1ddbcb86b9737d3d7b106489768fa9f1af38608a5eda8d0c59dd7713da4ba6a41e675677b99e26f8f6060be09e24df36a3e24bea721b2faad9d44e4ef38b144f
6
+ metadata.gz: 1c0e0b1dec8a0a39167225065c44c58b19d662178cd68162c1f3c98cbf0350dfcec8dc73922506bb9a7251479380e21cbe62e3765f97fbf91200267f19aef340
7
+ data.tar.gz: 924774871d263700bc7e38dd0ab338e66009f573222e3bb49c7c97464d5da0017d7ec8a902f82c5713c1cfe9dedd9d8ba6e749e73ecdfc2282db833c41a66d5e
@@ -15,7 +15,7 @@
15
15
  module Line
16
16
  module Bot
17
17
  module API
18
- VERSION = "1.17.0"
18
+ VERSION = "1.18.0"
19
19
  end
20
20
  end
21
21
  end
@@ -645,6 +645,46 @@ module Line
645
645
  get(endpoint, endpoint_path, credentials)
646
646
  end
647
647
 
648
+ # Gets information on a webhook endpoint.
649
+ #
650
+ # @return [Net::HTTPResponse]
651
+ def get_webhook_endpoint
652
+ channel_token_required
653
+
654
+ endpoint_path = '/bot/channel/webhook/endpoint'
655
+ get(endpoint, endpoint_path, credentials)
656
+ end
657
+
658
+ # Sets the webhook endpoint URL.
659
+ #
660
+ # @param webhook_endpoint [String]
661
+ #
662
+ # @return [Net::HTTPResponse]
663
+ def set_webhook_endpoint(webhook_endpoint)
664
+ channel_token_required
665
+
666
+ endpoint_path = '/bot/channel/webhook/endpoint'
667
+ body = {endpoint: webhook_endpoint}
668
+ put(endpoint, endpoint_path, body.to_json, credentials)
669
+ end
670
+
671
+ # Checks if the configured webhook endpoint can receive a test webhook event.
672
+ #
673
+ # @param webhook_endpoint [String] options
674
+ #
675
+ # @return [Net::HTTPResponse]
676
+ def test_webhook_endpoint(webhook_endpoint = nil)
677
+ channel_token_required
678
+
679
+ endpoint_path = '/bot/channel/webhook/test'
680
+ body = if webhook_endpoint.nil?
681
+ {}
682
+ else
683
+ {endpoint: webhook_endpoint}
684
+ end
685
+ post(endpoint, endpoint_path, body.to_json, credentials)
686
+ end
687
+
648
688
  def get_liff_apps
649
689
  channel_token_required
650
690
 
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.17.0
4
+ version: 1.18.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: 2020-12-18 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.7.6
124
+ rubygems_version: 3.1.2
126
125
  signing_key:
127
126
  specification_version: 4
128
127
  summary: SDK of the LINE Messaging API