我可以很容易地獲得授權代碼,但是在嘗試交換訪問令牌時不斷收到錯誤。無法使用php形式在谷歌oauth上交換令牌授權代碼
<FORM action="https://accounts.google.com/o/oauth2/auth" method="post">
<input type = "hidden" name = "code" value = "4%2FXR0s9YvmROnHOpNUuiSlfxHE7xj-">
<input type = "hidden" name = "redirect_uri" value = "http%3A%2F%2Fwww.m1448analytics.com%2Foauth2%2Frecv.php">
<input type = "hidden" name = "client_id" value = "502294831256-84q1ar05j14knsh5h2msvofu68e7rpaj.apps.googleusercontent.com">
<input type = "hidden" name = "scope" value = "">
<input type = "hidden" name = "client_secret" value = "hiding it">
<input type = "hidden" name = "grant_type" value = "authorization_code">
<INPUT type="submit" value="Send">
</FORM>
谷歌稱:錯誤:INVALID_REQUEST 要求的參數丟失:RESPONSE_TYPE 瞭解更多 請求細節
我會出去肢體,並說你需要添加'response_type'? – EboMike 2012-02-09 01:07:38
正在查看此問題的人。 C2DM已棄用,請前往實施GCM推送通知http://developer.android.com/guide/google/gcm/index.html – bhuvin 2012-08-02 04:56:42