Jus*_*her 4 rest json postman onesignal
在尝试按照 onesignal 文档使用 postman 向 onesignal 发送 POST 请求以发送通知时,在尝试发送时出现以下错误:
"app_id not found. You may be missing a Content-Type: application/json header."
此外,我相信我的 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)
不知道从这里去哪里。
此处的文档:https ://documentation.onesignal.com/docs/using-postman
非常感谢任何和所有的帮助!
谢谢!
| 归档时间: |
|
| 查看次数: |
3271 次 |
| 最近记录: |