小编Jus*_*her的帖子

onesignal API,Postman:找不到app_id

在尝试按照 onesignal 文档使用 postman 向 onesignal 发送 POST 请求以发送通知时,在尝试发送时出现以下错误: "app_id not found. You may be missing a Content-Type: application/json header."

我确实有正确的内容类型标头: 由于显而易见的原因删除了 API 密钥的请求标头图片

此外,我相信我的 JSON 在语法上是正确的:

{
    "included_segments": [
        "Subscribed Users"
    ],
    "App_id": "{Removed for obvious reasons}",
    "contents": {
        "en": "This is a message, sent from postman using the onesignal API"
    },
    "headings": {
        "en": "This is a heading"
    },
    "subtitle": {
        "en": "This is a subtitle, it should only appear on iOS devices"
    },
    "ios_badgeType": "SetTo",
    "ios_badgeCount": 1,
    "priority": 10
} …
Run Code Online (Sandbox Code Playgroud)

rest json postman onesignal

4
推荐指数
1
解决办法
3271
查看次数

标签 统计

json ×1

onesignal ×1

postman ×1

rest ×1