Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.4k views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...