有沒有人有GAE/Cloud Endpoints API方法(Java)的示例,該方法可以從Android應用程序獲取圖像並將其上傳到Google雲儲存?如何使用GAE/Cloud Endpoints API方法將圖像上傳到Google Cloud Storage
我似乎無法找到關於如何做到這一點的任何示例,但從我的理解中可以找到。
編輯: 教程here顯示如何在eclipse中向Google應用引擎添加依賴項,並將圖像上傳/下載到Google Cloud Storage。莫名其妙地用雲端點做到這一點..?畢竟,它們都是Google App Engine。
我想將盡可能多的上傳/下載代碼卸載到我的Cloud Endpoints API方法中,而不是將所有內容都編碼到Android中。這將允許我在其他客戶端上重用我的Cloud Endpoints API。
更多信息,我發現:https://developers.google.com/api-client-library/java/apis/storage/v1#sample
看起來這是爲雲終端後端?:的gradle這個依賴
dependencies {
compile 'com.google.apis:google-api-services-storage:v1-rev66-1.21.0'
}
編輯:
您應該使用雲終端內這種依賴性:
compile 'com.google.appengine.tools:appengine-gcs-client:0.5'
您是否有任何示例代碼說明這是如何工作的? – Micro