如何在Postman中向标头添加大型JSON对象?

3

SendGrid API需要在X-SMTPAPI自定义头字段中输入一些大的JSON数据。

我该如何在Postman中输入和编辑它?

例如:

{
  "to": [
    "ben@sendgrid.com",
    "joe@sendgrid.com"
  ],
  "sub": {
    "%name%": [
      "Ben",
      "Joe"
    ],
    "%role%": [
      "%sellerSection%",
      "%buyerSection%"
    ]
  },
  "section": {
    "%sellerSection%": "Seller information for: %name%",
    "%buyerSection%": "Buyer information for: %name%"
  },
  "category": [
    "Orders"
  ]
}
1个回答

5

这应该很容易实现。

只需像下面截图中所示修改您的Postman请求头即可。

header截图


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接