Closed GoogleCodeExporter closed 9 years ago
I downloaded and i have some problem
1 Some time google does not return the token, the sdk display throw an ugly
exception. I discover that it's an error code 500. The detail are show below
2 And the property $accessType='offline' , what is it mean. Can i save the
token to use offline ?
error:
object(apiHttpRequest)#9 (9) {
["url:protected"]=>
string(42) "https://accounts.google.com/o/oauth2/token"
["requestMethod:protected"]=>
string(4) "POST"
["requestHeaders:protected"]=>
array(2) {
["content-type"]=>
string(33) "application/x-www-form-urlencoded"
["content-length"]=>
int(287)
}
["postBody:protected"]=>
string(287) "code=4%2FFDJD-lM2a55xPUAmGe2QF1vfyoni.QkEmhfbqhSAXgrKXntQAax2gozAfcgI&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fwww.somewhere.com%2Fpreview%2Fsample%2Fhung-plus-test%2Fapp.php&client_id=565232092335.apps.googleusercontent.com&client_secret=Kydj4HlQl2KfME3RgQsdd"
["userAgent:protected"]=>
string(59) "Google+ PHP Starter Application google-api-php-client/0.5.0"
["responseHttpCode:protected"]=>
int(400)
["responseHeaders:protected"]=>
array(10) {
["cache-control"]=>
string(46) "no-cache, no-store, max-age=0, must-revalidate"
["pragma"]=>
string(8) "no-cache"
["expires"]=>
string(29) "Fri, 01 Jan 1990 00:00:00 GMT"
["date"]=>
string(29) "Fri, 10 Aug 2012 09:58:13 GMT"
["content-type"]=>
string(16) "application/json"
["x-content-type-options"]=>
string(7) "nosniff"
["x-frame-options"]=>
string(10) "SAMEORIGIN"
["x-xss-protection"]=>
string(13) "1; mode=block"
["server"]=>
string(3) "GSE"
["transfer-encoding"]=>
string(7) "chunked"
}
["responseBody:protected"]=>
string(31) "{
"error" : "invalid_grant"
}"
["accessKey"]=>
NULL
}
Original comment by mhungo...@gmail.com
on 10 Aug 2012 at 10:04
Believe the encoding should be fixed, please reopen if still occurring.
Original comment by ianbar...@google.com
on 22 Mar 2013 at 1:35
Original issue reported on code.google.com by
nadavkav
on 29 Sep 2011 at 9:15