[[["容易理解","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-04-17 (世界標準時間)。"],[[["\u003cp\u003eBefore using Google APIs, you must enable them within a Google Cloud project, which can be created if you don't have one.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable Google APIs through the Google Cloud console by navigating to the Product Library, selecting the desired API, and clicking "Enable".\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, use the Google Cloud CLI by running the \u003ccode\u003egcloud services enable API_SERVICE_ID\u003c/code\u003e command, replacing \u003ccode\u003eAPI_SERVICE_ID\u003c/code\u003e with the specific API's identifier.\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive table lists various Google Workspace APIs along with their corresponding console links and CLI commands for enabling them within your project.\u003c/p\u003e\n"],["\u003cp\u003eAfter enabling the necessary APIs, you should understand the authentication and authorization processes for using Google Workspace APIs.\u003c/p\u003e\n"]]],["To use Google APIs, they must be enabled in a Google Cloud project. This can be done via the Google Cloud console by navigating to the Product Library, selecting the API, and clicking \"Enable,\" repeating for multiple APIs. Alternatively, using the Google Cloud CLI, run `gcloud services enable API_SERVICE_ID` to enable specific API. A list of google workspace APIs is provided along with their corresponding links and `gcloud` commands.\n"],null,["Before using Google APIs, you need to turn them on in a Google Cloud project.\nYou can turn on one or more APIs in a single Google Cloud project.\n\nIf you don't already have a Google Cloud project, see\n[Create a Cloud project](/workspace/guides/create-project).\n\nTo enable an API in your Cloud project:\n\nGoogle Cloud console\n\n1. In the Google Cloud console, go to Menu menu \\\u003e **More products** \\\u003e **Google Workspace** \\\u003e **Product Library** .\n\n [Go to Product Library](https://console.cloud.google.com/workspace-api/products)\n2. Click the API that you want to turn on.\n3. Click **Enable**.\n4. To enable more APIs, repeat these steps.\n\nGoogle Cloud CLI\n\n1. Install or open the [Google Cloud Command Line Interface (CLI)](https://cloud.google.com/cli).\n2. Run the [`services enable`](https://cloud.google.com/sdk/gcloud/reference/services) command, specifying which API service to enable.\n\n ```\n gcloud services enable API_SERVICE_ID\n ```\n\nGoogle Workspace APIs\n\nUse the following Google Cloud console links or the\n[Google Cloud Command Line Interface (CLI)](https://cloud.google.com/cli)\nto enable specific Google Workspace APIs in your Cloud project. \n\n|--------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Admin SDK API](/workspace/admin) | [Enable Admin SDK API](https://console.cloud.google.com/flows/enableapi?apiid=admin.googleapis.com) ``` gcloud services enable admin.googleapis.com ``` |\n| [Alert Center API](/workspace/admin/alertcenter) | [Enable Alert Center API](https://console.cloud.google.com/flows/enableapi?apiid=alertcenter.googleapis.com) ``` gcloud services enable alertcenter.googleapis.com ``` |\n| [Apps Script API](/apps-script) | [Enable Apps Script API](https://console.cloud.google.com/flows/enableapi?apiid=script.googleapis.com) ``` gcloud services enable script.googleapis.com ``` |\n| [CalDAV API](/workspace/calendar/caldav) | [Enable CalDAV API](https://console.cloud.google.com/flows/enableapi?apiid=caldav.googleapis.com) ``` gcloud services enable caldav.googleapis.com ``` |\n| [Calendar API](/workspace/calendar) | [Enable Calendar API](https://console.cloud.google.com/flows/enableapi?apiid=calendar-json.googleapis.com) ``` gcloud services enable calendar-json.googleapis.com ``` |\n| [Chat API](/chat) | [Enable Chat API](https://console.cloud.google.com/flows/enableapi?apiid=chat.googleapis.com) ``` gcloud services enable chat.googleapis.com ``` |\n| [Classroom API](/workspace/classroom) | [Enable Classroom API](https://console.cloud.google.com/flows/enableapi?apiid=classroom.googleapis.com) ``` gcloud services enable classroom.googleapis.com ``` |\n| [Cloud Identity API](https://cloud.google.com/identity/docs) | [Enable Cloud Identity API](https://console.cloud.google.com/flows/enableapi?apiid=cloudidentity.googleapis.com) ``` gcloud services enable cloudidentity.googleapis.com ``` |\n| [Cloud Search API](/workspace/cloud-search) | [Enable Cloud Search API](https://console.cloud.google.com/flows/enableapi?apiid=cloudsearch.googleapis.com) ``` gcloud services enable cloudsearch.googleapis.com ``` |\n| [Docs API](/workspace/docs) | [Enable Docs API](https://console.cloud.google.com/flows/enableapi?apiid=docs.googleapis.com) ``` gcloud services enable docs.googleapis.com ``` |\n| [Drive API](/drive) | [Enable Drive API](https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com) ``` gcloud services enable drive.googleapis.com ``` |\n| [Drive Activity API](/drive/activity) | [Enable Drive Activity API](https://console.cloud.google.com/flows/enableapi?apiid=driveactivity.googleapis.com) ``` gcloud services enable driveactivity.googleapis.com ``` |\n| [Drive Labels API](/drive/labels) | [Enable Drive Labels API](https://console.cloud.google.com/flows/enableapi?apiid=drivelabels.googleapis.com) ``` gcloud services enable drivelabels.googleapis.com ``` |\n| [Forms API](/workspace/forms/api) | [Enable Forms API](https://console.cloud.google.com/flows/enableapi?apiid=forms.googleapis.com) ``` gcloud services enable forms.googleapis.com ``` |\n| [Gmail API](/workspace/gmail) | [Enable Gmail API](https://console.cloud.google.com/flows/enableapi?apiid=gmail.googleapis.com) ``` gcloud services enable gmail.googleapis.com ``` |\n| [Groups Migration API](/workspace/admin/groups-migration) | [Enable Groups Migration API](https://console.cloud.google.com/flows/enableapi?apiid=groupsmigration.googleapis.com) ``` gcloud services enable groupsmigration.googleapis.com ``` |\n| [Groups Settings API](/workspace/admin/groups-settings) | [Enable Groups Settings API](https://console.cloud.google.com/flows/enableapi?apiid=groupssettings.googleapis.com) ``` gcloud services enable groupssettings.googleapis.com ``` |\n| [Google Workspace add-ons API](/workspace/add-ons) | [Enable Google Workspace add-ons API](https://console.cloud.google.com/flows/enableapi?apiid=gsuiteaddons.googleapis.com) ``` gcloud services enable gsuiteaddons.googleapis.com ``` |\n| [Google Keep API](/workspace/keep/api) | [Enable Google Keep API](https://console.cloud.google.com/flows/enableapi?apiid=keep.googleapis.com) ``` gcloud services enable keep.googleapis.com ``` |\n| [Enterprise License Manager API](/workspace/admin/licensing) | [Enable Enterprise License Manager API](https://console.cloud.google.com/flows/enableapi?apiid=licensing.googleapis.com) ``` gcloud services enable licensing.googleapis.com ``` |\n| [Marketplace API](/workspace/marketplace/reference/rest) | [Enable Marketplace API](https://console.cloud.google.com/flows/enableapi?apiid=appsmarket.googleapis.com) ``` gcloud services enable appsmarket.googleapis.com ``` |\n| [Marketplace SDK](/workspace/marketplace) | [Enable Marketplace SDK](https://console.cloud.google.com/flows/enableapi?apiid=appsmarket-component.googleapis.com) ``` gcloud services enable appsmarket-component.googleapis.com ``` |\n| [Meet REST API](/meet) | [Enable Meet REST API](https://console.cloud.google.com/flows/enableapi?apiid=meet.googleapis.com) ``` gcloud services enable meet.googleapis.com ``` |\n| [People API](/people) | [Enable People API](https://console.cloud.google.com/flows/enableapi?apiid=people.googleapis.com) ``` gcloud services enable people.googleapis.com ``` |\n| [Postmaster Tools API](/workspace/gmail/postmaster) | [Enable Postmaster Tools API](https://console.cloud.google.com/flows/enableapi?apiid=gmailpostmastertools.googleapis.com) ``` gcloud services enable gmailpostmastertools.googleapis.com ``` |\n| [Reseller API](/workspace/admin/reseller) | [Enable Reseller API](https://console.cloud.google.com/flows/enableapi?apiid=reseller.googleapis.com) ``` gcloud services enable reseller.googleapis.com ``` |\n| [Sheets API](/workspace/sheets) | [Enable Sheets API](https://console.cloud.google.com/flows/enableapi?apiid=sheets.googleapis.com) ``` gcloud services enable sheets.googleapis.com ``` |\n| [Slides API](/workspace/slides) | [Enable Slides API](https://console.cloud.google.com/flows/enableapi?apiid=slides.googleapis.com) ``` gcloud services enable slides.googleapis.com ``` |\n| [Tasks API](/workspace/tasks) | [Enable Tasks API](https://console.cloud.google.com/flows/enableapi?apiid=tasks.googleapis.com) ``` gcloud services enable tasks.googleapis.com ``` |\n| [Vault API](/workspace/vault) | [Enable Vault API](https://console.cloud.google.com/flows/enableapi?apiid=vault.googleapis.com) ``` gcloud services enable vault.googleapis.com ``` |\n\nNext step\n\n[Learn how authentication and authorization works](/workspace/guides/auth-overview)\nfor Google Workspace APIs."]]