gpt4 book ai didi

json - onesignal API, postman : app_id cannot be found

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

在尝试按照 onesignal 文档使用 postman 向 onesignal 发送 POST 请求以发送通知时,尝试发送时出现以下错误:“找不到 app_id。您可能缺少 Content-Type:application/json header 。”

我确实有正确的内容类型 header : Image of my request headers with the API key removed for obvious reasons

此外,我相信我的 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
}

不知道从这里去哪里。

此处的文档:https://documentation.onesignal.com/docs/using-postman

非常感谢任何帮助!

谢谢!

最佳答案

我解决了这个问题,并且正在为将来的人们添加我的解决方案。在我消息的 json 正文中,我有“App_id”,它需要“app_id”。改变 a 的大小写使其工作。

关于json - onesignal API, postman : app_id cannot be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65818103/

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