Php Google push.webhookUrlUnauthorized错误
我正在使用带有推送通知的google日历API,直到昨天它还可以正常工作,但今天它给了我一个错误:在这里Php Google push.webhookUrlUnauthorized错误,php,google-calendar-api,Php,Google Calendar Api,我正在使用带有推送通知的google日历API,直到昨天它还可以正常工作,但今天它给了我一个错误:在这里 HTTP/1.1 401 Unauthorized Vary: X-Origin WWW-Authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token Content-Type: application/json; charset=UTF-8 Date: Sat, 31 Oct 2015 06:4
HTTP/1.1 401 Unauthorized
Vary: X-Origin
WWW-Authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token
Content-Type: application/json; charset=UTF-8
Date: Sat, 31 Oct 2015 06:43:59 GMT
Expires: Sat, 31 Oct 2015 06:43:59 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=1
Alt-Svc: quic=":443"; p="1"; ma=604800
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Transfer-Encoding: chunked
{
"error": {
"errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
],
"code": 401,
"message": "Unauthorized WebHook callback channel: https://api.hustl.it/test.php"
}
}
根据日历API开发人员指南的页面,应在Web服务器上安装有效的SSL证书。如果当前安装的SSL证书已过期或已被删除,您可以首先检查它
还请注意,无效证书包括
- 自签名证书
- 由不受信任的源签署的证书
- 已被吊销的证书
- 主题与目标主机名不匹配的证书
基于页面的另一个重要考虑事项是,在<代码>地址<代码>值中使用的URL域应在
中注册。 希望这有帮助