ngrok과 Python으로 단순히 webhook을 받으십시오.
tl;dr
소재
흐름
파이썬에서 무엇을 받더라도 200 OK를 반환하는 서버 만들기
GET이나 POST에 따라 동작을 변경하고 싶으므로 http.server의 BaseHTTPRequestHandler를 사용합니다.
import http.server
import socketserver
import json
class MyHandler(http.server.BaseHTTPRequestHandler):
def do_POST(self):
self.send_response(200)
self.end_headers()
with socketserver.TCPServer(("", 80), MyHandler) as httpd:
httpd.serve_forever()
serving at port 80
라고 표시되어 있으면 OK입니다. ngrok로 외부에서 액세스를 받을 수 있는 환경 만들기
가이드

auth.bat
ngrok authtoken 1UFVG5sdtzGXXXXXXXXX
80listen.bat
ngrok http 80
ngrok

ngrok과 함께 제공되는 Inspect 도구로받은 Webhook의 내용을 살펴보십시오.
ngrok


브라우저에서 http://localhost:4040/inspect/http에 액세스하면 더 명확하게 볼 수 있습니다.
inspect 화면 예

Reference
이 문제에 관하여(ngrok과 Python으로 단순히 webhook을 받으십시오.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/mmurasawa/items/e508a6b04b5f15f155f9텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)