Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

postman - Unauthorized WebHook callback channel Google push notifications

I am trying to monitor my files in Google Drive. By getting notifications to the delivery channel. I've tried everything and tried hundreds of times but every time he tells me: `

I am using Postman.

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"
   }

Response

{
    "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"
    }
}

In the Domain verification I added:

www.nwafith.com

nwafith.com

Everything looks right but I don’t know exactly where the problem is. I hope for help


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Unauthorized WebHook callback channel:

Means that you have not properly authorized your domain in Google developer console.

Solution:

  1. Go to the Google Developers Console
  2. Select your project
  3. Under 'APIS & AUTH' select 'Push'
  4. Click 'Add domains'
  5. Enter the needed domains (Only the domain is needed: https://www.nwafith.com)
  6. Click the 'Add domains' button

After that it should work.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...