We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c54202 commit 243295aCopy full SHA for 243295a
lib/line/bot/client.rb
@@ -655,6 +655,19 @@ def get_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
def get_liff_apps
672
channel_token_required
673
0 commit comments