oAuth 2.0 Google API asp.net请求令牌

我有一个从谷歌API获取令牌的问题,首先我提出这个请求从谷歌获取代码

accounts.google.com/o/oauth2/auth?scope=www.googleapis.com/auth/userinfo.profile        www.googleapis.com/auth/userinfo.email&state=profile&redirect_uri={http://pedidostogo.com/Login.aspx}&response_type=code&client_id=519970867780.apps.googleusercontent.com&access_type=offline

这似乎是工作正常(即时从谷歌获得代码)之后,我再次请求获取令牌使用该代码,为此我:

accounts.google.com/o/oauth2/token?client_secret={my客户端密码}&grant_type = authorization_code&redirect_uri = {http://idl.google.com/android_id= {我的客户端ID}&code = {我从谷歌}

但是当我做这个POST请求即时获取:

状态:400错误的请求

Headers: Pragma: no-cache
Date: Thu, 28 Feb 2013 20:00:00 GMT
Content-Encoding: gzip
X-Content-Type-Options: nosniff
Server: GSE
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Content-Type: application/json
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
X-XSS-Protection: 1; mode=block
Expires: Fri, 01 Jan 1990 00:00:00 GMT

Data: {
  "error" : "invalid_request"
}

谁能告诉我我做错了什么? 谢谢。

链接地址: http://www.djcxy.com/p/80051.html

上一篇: oAuth 2.0 Google API asp.net Requesting Token

下一篇: Can a GAE app access Cloud Storage RESTful API without the OAuth dance?