Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...