設置Google雲端平臺。想要使用它的翻譯API。在連接App的步驟上採樣。 有一個IMG我的步驟,其中IM放養 如何設置Google Cloud Platform並開始在Android應用中使用API?
我已經在我的Windows 10
取得環境變量之後,有一段代碼
// If you don't specify credentials when constructing the client, the
// client library will look for credentials in the environment.
Storage storage = StorageOptions.getDefaultInstance().getService();
Page<Bucket> buckets = storage.list();
for (Bucket bucket : buckets.iterateAll()) {
// do something with the info
}
但不明白是什麼我應該這樣做。我的下一步是什麼?以及如何將Google Cloud API附加到我的應用。它與剛添加庫類似嗎?
有一個鏈接,引導https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-java
難道有人看到一步一步的在谷歌雲平臺指南權威性的Android?