“消息”:“ json中的意外数字”位置1&quot 1。

发布于 2025-02-04 18:18:34 字数 681 浏览 4 评论 0原文

我对邮递员有问题。 当我将数据发送给使用API​​发送的sendinblue时,我得到了一个响应=> ”:“位置1的JSON中的

意外

"updateEnabled":true
"smtpBlacklistSender":["[email protected]"]
"smsBlacklisted":false
"emailBlacklisted":false
"listIds":[27]
"email":"[email protected]"
"attributes":{"FNAME":"Elly","LNAME":"Roger"}

“消息 “>我的数据 api helper

I've a problem with postman.
When i sent my data to sendinblue with API, i got a response => "message": "Unexpected number in JSON at position 1"

My data is here :

"updateEnabled":true
"smtpBlacklistSender":["[email protected]"]
"smsBlacklisted":false
"emailBlacklisted":false
"listIds":[27]
"email":"[email protected]"
"attributes":{"FNAME":"Elly","LNAME":"Roger"}

I will attache my images

my data
api helper

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷情妓 2025-02-11 18:18:34

您选择了错误的内容类型作为后请求。将其放入Body> RAW> json喜欢这样:

{
    "updateEnabled": true,
    "smtpBlacklistSender": [
        "[email protected]"
    ],
    "smsBlacklisted": false,
    "emailBlacklisted": false,
    "listIds": [
        27
    ],
    "email": "[email protected]",
    "attributes": {
        "FNAME": "Elly",
        "LNAME": "Roger"
    }
}

You chose the wrong content-type for post request. Put it in Body > raw > json like this:

enter image description here

with correct json format:

{
    "updateEnabled": true,
    "smtpBlacklistSender": [
        "[email protected]"
    ],
    "smsBlacklisted": false,
    "emailBlacklisted": false,
    "listIds": [
        27
    ],
    "email": "[email protected]",
    "attributes": {
        "FNAME": "Elly",
        "LNAME": "Roger"
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文