跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 技术求助:如何获取 Webhook URL 被 POST 的内容(json)到 Python 保存

发表于
技术求助:如何获取 Webhook URL 被 POST 的内容(json)到 python 保存

1.背景:
目标网站 A 提供了一个服务:某个信息更新后,目标网站 A 就会把此 更新消息 POST 到 设置的 Webhook URL 上
已经按照 流程 在 postman 上生成了一个 Webhook URL ,并填入 目标网站 A
信息更新后,目标网站 A 网页端确实看到信息有更新.

2.需要做的:
目前,就是不知道 如何保存每次 POST 的信息到 python 中 (POST 到 Webhook URL 的信息, 是 json)
(就是使用哪些命令,获取到 保存这个信息,因为程序其他部分 需要这个 信息,获取每次 POST 到 Webhook_URL 的 内容,下面的程序才能进行).

3.请各位技术大佬 不吝赐教,谢谢!如果可以带关键代码 那就最好了.

postman 上生成的 Webhook_URL
Webhook_URL = 'https://***.mock.pstmn.io'

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.