sendgrip webhooks测试api返回403/204

时间:2019-03-31 12:55:55

标签: php sendgrid sendgrid-api-v3

我正在尝试测试sendgrid api'https://api.sendgrid.com/v3/user/webhooks/event/test'的webhooks。通过该终结点,您可以通过向提供的URL发送伪造的事件通知帖子来测试事件Webhook。

  1. 我正在尝试sendgrid门户:https://sendgrid.api-docs.io/v3.0/webhooks/test-event-notification-settings 我得到403回应, 响应正文:

    {   “错误”:[     {       “字段”:null,       “消息”:“禁止访问”     }   ] }

  2. 也在我的本地脚本上:在这里,我得到的HTTP响应为204,响应正文为空。

有人可以帮我找到我想念的东西吗?

编辑: 我输错了钥匙,现在我更正了它。 但是现在我得到'400 Bad Request' 响应:

{
  "errors": [
    {
      "message": "invalid json received"
    }
  ]
}

0 个答案:

没有答案
相关问题