0
我正在開發一個Chrome擴展程序,其中包含用於Chrome的Google雲消息傳遞,以將消息推送到我的Chrome擴展的實例。Chrome的谷歌雲消息接收錯誤代碼403禁止
當試圖推送消息到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"
}
}
任何人都知道如何解決這個問題呢?
預先感謝您。 Burin H.
它說「訪問未配置。」你有沒有修復?不要在這裏發佈,但是你有客戶ID嗎? http://developer.chrome.com/apps/cloudMessaging.html#clientid你沒有多說你如何構建你的請求,所以我們很難說出它有什麼問題。 – sowbug