我可以很容易地获得授权代码,但是在尝试交换访问令牌时不断收到错误。无法使用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