本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
Cloud 用戶端程式庫
Cloud 用戶端程式庫是呼叫 Google Cloud API 時,最新且建議使用的用戶端程式庫。
Cloud 用戶端程式庫會使用每個支援語言的自然慣例與樣式,提供最佳開發人員體驗。這些程式庫也可讓您不必再撰寫重複不變的程式碼,因為程式庫的設計可讓您在瞭解服務隱喻的情況下工作,而非實作細節或服務 API 概念。
如要進一步瞭解 Cloud API 適用的用戶端程式庫,請參閱用戶端程式庫說明。
使用 Cloud 用戶端程式庫
各語言的 Cloud 用戶端程式庫
下表提供相關連結,協助您透過支援的語言開始使用 Cloud 用戶端程式庫。各個語言的「GitHub 存放庫」頁面列有該語言的 Cloud 用戶端程式庫支援的 Cloud Platform 服務/API。該頁面也會提供安裝單一用戶端程式庫的說明,方便您透過介面存取 API。
Google Cloud 用戶端程式庫 |
安裝和參考資料 |
Go |
|
Java |
|
Node.js |
|
Python |
|
Ruby |
|
PHP |
|
C# |
|
C++ |
|
各項服務的 Cloud 用戶端程式庫
您也可以只針對個別Trusted Cloud by S3NS 服務下載 Cloud 用戶端程式庫;如需詳細入門操作說明,您可以前往相關產品的用戶端程式庫頁面。舉例來說,如果您只想使用 Pub/Sub,則可前往 Pub/Sub 用戶端程式庫頁面查看相關資訊。
如果特定語言的 Cloud 用戶端程式庫不支援您想使用的服務,請使用該語言的 Google API 用戶端程式庫。
搭配 Cloud Code 使用 Cloud 用戶端程式庫
Cloud Code 是 VS Code、IntelliJ 和 Cloud Shell 中的工具,可供您開發雲端應用程式,讓您輕鬆使用 Cloud Client Libraries,不必離開 IDE。您可以輕鬆:
- 瀏覽 Cloud API
- 閱讀 Cloud API 說明文件
- 啟用 Cloud API
- 將 Cloud 用戶端程式庫新增至專案
如要進一步瞭解如何搭配 Cloud Code 使用 Cloud 用戶端程式庫,請參閱下列說明文件:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-11 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-11 (世界標準時間)。"],[[["Cloud Client Libraries are the recommended client libraries for interacting with Google Cloud APIs, offering an enhanced developer experience."],["These libraries are designed to align with each language's conventions, thereby reducing the amount of boilerplate code needed by developers."],["Cloud Client Libraries are available for various languages, including Go, Java, Node.js, Python, Ruby, PHP, C#, and C++, with detailed installation and reference guides for each."],["Cloud Code allows for easy integration and use of Cloud Client Libraries directly within popular IDEs such as VS Code, IntelliJ, and Cloud Shell."],["Users can also download Cloud Client Libraries specifically for individual Google Cloud services, like Pub/Sub, if they do not wish to download everything at once."]]],[]]