我正在开发一个 Chrome 扩展程序,该程序具有谷歌云消息传递功能,用于 chrome 将消息推送到我的 Chrome 扩展程序的实例。
当尝试将消息推送到 GCM 服务器时,我收到以下不成功的响应,如下所示;
> POST /gcm_for_chrome/v1/messages HTTP/1.1
> User-Agent: curl/7.26.0
> Host: www.googleapis.com
> Accept: */*
> Content-Type: application/json
> Content-Length: 133
>
* upload completely sent off: 133 out of 133 bytes
< HTTP/1.1 403 Forbidden
< Content-Type: application/json; charset=UTF-8
< Date: Mon, 15 Apr 2013 19:49:24 GMT
< Expires: Mon, 15 Apr 2013 19:49:24 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured"
}
],
"code": 403,
"message": "Access Not Configured"
}
}
有谁知道如何解决这个问题?
先感谢您。布林·H。