首页 > 解决方案 > 如何使用 Postman 发送 HTTP 200 响应

问题描述

我创建了一个 Slack 应用程序,它有一个模式窗口来接收来自我的用户的信息。我使用 Postman 通过 HTTP 请求与 Slack “交互”。一切正常,但我无法关闭 Slack 的模式窗口。我知道当用户单击模式的提交按钮时,我必须发送一个 HTTP 200 来松弛。Postman 正在接收包含所有用户输入信息的 Slack 有效负载,但现在我需要关闭该模式窗口。那么,如何使用 Postman 响应 HTTP 200?

该解决方案可以使用 Postman 的用户界面或函数 pm.sendRequest(....

有人可以帮我使用 Postman 发送 HTTP 200 OK 吗?

谢谢!

标签: postmanhttpresponseslack

解决方案


这就是我GET通过 Postman 桌面应用程序发送请求的方式。

Prerequisites


1. Install Postman
2. API URL // endpoint
3. Live server //localhost needs a server to start the app

在此处输入图像描述

@MarceloRohrs 让我知道进度


推荐阅读