tomwalder / php-gds

Google Cloud Datastore Library for PHP
Apache License 2.0
164 stars 44 forks source link

Tutorial to first steps... #45

Open gazambuja opened 9 years ago

gazambuja commented 9 years ago

Hi, Im new in this, but I can not find any "how to" to install from 0 in google app engine with this library. You can provide some step to step?

For example, to make the demo work in a Google App Engine project, you will need a app.yaml file with some configuration like this:

application: <your-app-id>
    version: 1
    runtime: php55
    api_version: 1

    handlers:
    - url: /img
      static_dir: public/img

    - url: /css
      static_dir: public/css

    - url: /(.*)
      script: /public/\1

    - url: /
      script: /public/main.php

But, how to have all permissions to work? In my case the google app engine log get me this:

    Error refreshing the OAuth2 token, message: '{
      "error" : "invalid_grant"
    }'

why?

tomwalder commented 9 years ago

Hello.

Your specific OAuth problem does not sounds like it has anything to do with my library.

Maybe have a look at this link: http://stackoverflow.com/questions/21381085/gae-error-refreshing-oauth2-token

I will look into a more "end to end" tutorial soon.