Google drive api 未经授权的WebHook回调通道Google推送通知

Google drive api 未经授权的WebHook回调通道Google推送通知,google-drive-api,postman,Google Drive Api,Postman,我正在谷歌硬盘上监视我的文件。 通过向传递通道获取通知。 我什么都试过,试过几百次,但每次他告诉我: ` 我用的是邮递员 Post https://www.googleapis.com/drive/v2/changes/watch Body: {"id": "01234567-89ab-cdef-012345***789ab", "kind":"drive#startPageToken", "

我正在谷歌硬盘上监视我的文件。 通过向传递通道获取通知。 我什么都试过,试过几百次,但每次他告诉我: `


我用的是邮递员

Post https://www.googleapis.com/drive/v2/changes/watch
Body:

  {"id": "01234567-89ab-cdef-012345***789ab",
  "kind":"drive#startPageToken",
  "type": "webhook",
  "address": "https://nwafith.com/api/notifications"
   }
回应

{
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "push.webhookUrlUnauthorized",
                "message": "Unauthorized WebHook callback channel: https://www.nwafith.com/api/notifications"
            }
        ],
        "code": 401,
        "message": "Unauthorized WebHook callback channel: https://www.nwafith.com/api/notifications"
    }
}
域内验证 我补充道:

www.nwafith.com

nwafith.com
看起来一切正常,但我不知道问题出在哪里。 我希望能得到帮助

未经授权的WebHook回调通道:

意味着您尚未在Google开发者控制台中正确授权您的域

解决方案:

  • 去医院
  • 选择您的项目
  • 在“API和身份验证”下选择“推送”
  • 单击“添加域”
  • 输入所需的域(仅需要域:)
  • 单击“添加域”按钮

  • 之后它应该会工作。

    请编辑您的问题并包含您的代码。我正在使用Postman@DaImTo我可以让你访问我的设备,自己试一试,我急需帮助。@DalmTo谢谢,这是固定的