【问题标题】:How to work xtify simple push api in chrome postman application如何在 chrome postman 应用程序中使用 xtify 简单推送 api
【发布时间】:2015-11-05 21:55:10
【问题描述】:

我试图在 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 但它显示错误消息:

应用程序密钥无效

【问题讨论】:

  • 尝试通过控制台中的“推送点”发送推送通知,以确保您正确设置了 appKey。

标签: json postman xtify


【解决方案1】:

其实我已经用这个 url https://api.xtify.com/2.0/push 来发送推送了。但应该是这样的https://euapi.xtify.com/2.0/push。现在可以使用了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-18
    • 2020-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多