Google App Engine应用程序拥有的驱动器API(PHP)
I'm setting up an application-owned service which can access it's own Drive (and I will share private spreadsheets with it).
According to the Developer Page for Account Services #AppEngine:
- "In the sidebar on the left, select APIs & auth. In the list of APIs, make sure the status is ON for the Drive API." (DONE)
- "To find your application's API key, expand the Browser Key or Server Key sections" (Can't seem to find that, but I was prompted to download a key with "notasecret" - not sure if this is it and where the key is).
- Next, it gives start examples, but not in PHP. Do I have to download and include the Google API for PHP?
"To find your application's API key, expand the Browser Key or Server Key sections" (Can't seem to find that, but I was prompted to download a key with "notasecret" - not sure if this is it and where the key is).
Go to this URL
https://code.google.com/apis/console/b/0/?noredirect#project:999999999999:access
where 99999999 is the numeric project ID which you can find at the top of the screen, or embedded within your URL. ^f for API Key, or scroll down around 3/4 of the page.
Next, it gives start examples, but not in PHP. Do I have to download and include the Google API for PHP? You can either access it using the raw http rest API, or use the PHP wrapper library. Examples of both canbe found in the respective API reference pages, eg https://developers.google.com/drive/v2/reference/files/list