答案 0 :(得分:0)
您可以在Google App Engine(GAE)中使用Google API,例如Google云端硬盘,日历等。不幸的是,它们没有直接链接,但您可以使用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参考。
我希望这会对你有所帮助。 :)