https://wiki.apipost.cn/docs/http_debug/script#%E5%8F%91%E9%80%81http%E8%AF%B7%E6%B1%82
await $.ajax({
"url": "https://go.apipost.cn",
"method": "POST",
"content-type": "appication/json",
"data": JSON.stringify({
"email": pm.environment.get("host"),
"password": "密码"
}),
"success": function (response) {
response = typeof response == "object" ? response : JSON.parse(response);
console.log(response);
pm.environment.set("body", JSON.parse(response.body).email);
apt.setRequestHeader("body", pm.environment.get("body"));
}
});