GithubHelp home page GithubHelp logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
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 [email protected] on 10 Aug 2012 at 10:04

from google-api-php-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
Believe the encoding should be fixed, please reopen if still occurring.

Original comment by [email protected] on 22 Mar 2013 at 1:35

  • Changed state: Done

from google-api-php-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.