gpt4 book ai didi

javascript - 如何在前置脚本请求中为 postman 请求添加请求参数

转载 作者:行者123 更新时间:2023-12-04 12:16:44 24 4
gpt4 key购买 nike

我想通过预请求脚本在 postman 中为我的请求添加查询参数。我怎样才能做到这一点?

最佳答案

像这样的基本东西可以在集合中使用 Pre-request Script :

pm.request.url.query.add({key: 'test', value: '1234'})

关于javascript - 如何在前置脚本请求中为 postman 请求添加请求参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60946921/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com