2016-05-17 19 views
0

プロジェクトを作成し、ドライブAPIとドライブSDKを有効にするチュートリアルに従っていますが、ドライブSDKがコンソールに表示されていません。あなたはこのようなGoogle App Engineの中など、Googleドライブ、カレンダー(GAE)として、GoogleのAPIを使用することができますGoogle App EngineコンソールのドライブSDKが表示されない

enter image description here

答えて

0

:コンソールのスナップショットを下に追加されます。残念ながら、それらは直接リンクされていませんが、google-api-python-clientライブラリ(インストールする必要があります)を使用することができます。

Python Quickstartの後に、GAEおよびGoogle APIとの統合を開始できます。ここで

previous SO questionからの回答に与えられる次のコードです:

import httplib2 
from apiclient import discovery 

credentials = get_credentials() #Your function to request/access stored credentials 
#Authorise access to Drive using the user's credentials 
http = credentials.authorise(httplib2.Http()) 
#The service object is the gateway to your API functions 
service = discovery.build('drive', 'v2', http=http) 

#Run your requests using the service object. e.g. list first 10 files: 
results = service.files().list(maxResults=10).execute() 
# ... etc ... Do something with results 

またSOの質問から含まGoogle DriveのAPIリファレンスです。

私はこれがあなたを助けてくれることを願っています。 :)

関連する問題