0
A
回答
0
您可以使用谷歌API,如谷歌雲端硬盤,日曆等谷歌應用程序引擎(GAE)。不幸的是,他們沒有直接的聯繫,但你可以使用google-api-python-client
庫(你必須安裝)。
您可以按照Python Quickstart開始與GAE和谷歌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參考。
我希望這可以幫助你。 :)
相關問題
- 1. 在谷歌應用程序引擎SDK
- 2. 應用程序引擎無法連接到谷歌雲SQL
- 3. 谷歌應用程序引擎無法切換到python3
- 4. 谷歌應用程序引擎無法找到PyObjC /認清PYTHONPATH
- 5. 谷歌應用程序引擎 - 無法找到調度配置
- 6. 無法上傳到谷歌應用程序引擎
- 7. 無法部署到谷歌應用程序引擎
- 8. 無法仿真器連接到谷歌應用程序引擎
- 9. 無法打開谷歌計算引擎控制檯
- 10. 谷歌應用程序引擎的應用程序監控java
- 11. 在谷歌應用程序引擎
- 12. 在cygwin谷歌應用程序引擎
- 13. 在谷歌應用程序引擎
- 14. 在谷歌應用程序引擎
- 15. java.lang.ClassNotFoundException:sun.security.provider.Sun在谷歌應用程序引擎
- 16. 谷歌應用程序引擎 - 在
- 17. 櫟在谷歌應用程序引擎
- 18. 在谷歌應用程序引擎
- 19. 在谷歌應用程序引擎erlang?
- 20. OAuth在谷歌應用程序引擎
- 21. 在谷歌應用程序引擎
- 22. e.printStackTrace在谷歌應用程序引擎
- 23. JSF在谷歌應用程序引擎
- 24. 在谷歌應用程序引擎JAVA
- 25. KindError在谷歌應用程序引擎
- 26. 無法在谷歌應用程序引擎
- 27. 無法在谷歌應用程序引擎安裝WordPress
- 28. 無法在谷歌應用程序引擎
- 29. 排序谷歌應用程序引擎
- 30. 簡介python在谷歌應用程序引擎sdk(djangoappengine)