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 +4 -4
- data/lib/line/bot/api/version.rb +1 -1
- data/lib/line/bot/client.rb +40 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b8ceb7011bc2da255888239f7d9a26622ea7713f8fb6154c8aa4637c5c0be0
|
4
|
+
data.tar.gz: 885e68bbd4485d411f5e79e1bfc1aa2a29e9d6c07d64d91db22cd4387c0d334d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0e0b1dec8a0a39167225065c44c58b19d662178cd68162c1f3c98cbf0350dfcec8dc73922506bb9a7251479380e21cbe62e3765f97fbf91200267f19aef340
|
7
|
+
data.tar.gz: 924774871d263700bc7e38dd0ab338e66009f573222e3bb49c7c97464d5da0017d7ec8a902f82c5713c1cfe9dedd9d8ba6e749e73ecdfc2282db833c41a66d5e
|
data/lib/line/bot/api/version.rb
CHANGED
data/lib/line/bot/client.rb
CHANGED
@@ -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.
|
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:
|
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
|
-
|
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
|