我曾尝试在post-man中使用xtify简单推送api,但它显示了错误。我在原始主体中使用了以下json代码:
{
"apiKey":"12345678-7d94-415a-9eed-00987654321",
"appKey":"12345678-4ab7-4633-8a7c-00987654321",
"sendAll": true,
"content": {
"message": "Arma virumque cano, troiaeque primus ab oris",
"sound": "default.caf",
"badge": "+1",
"action": {
"type": "CUSTOM",
"label":"Open",
"data": "{'action_id': 'ABC', inum: '123456'}"
}
}
}
我有有效的api密钥和应用程序密钥。出于安全考虑,我在这里更改了api密钥和应用程序密钥。使用标题Content-Type=application/json,但显示错误消息:
无效的应用程序密钥
实际上我使用过这个urlhttps://api.xtify.com/2.0/push用于发送推送。但应该是这样https://euapi.xtify.com/2.0/push.它现在工作