drgd73844
2014-04-01 20:22
浏览 22
已采纳

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?
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doufei7516 2014-04-02 05:05
    已采纳

    "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

    点赞 评论

相关推荐 更多相似问题