ก่อนใช้ Google API คุณต้องเปิดใช้งานในโปรเจ็กต์ Google Cloud คุณเปิด API ได้อย่างน้อย 1 รายการในโปรเจ็กต์ Google Cloud โปรเจ็กต์เดียว หากยังไม่มีโปรเจ็กต์ Google Cloud โปรดดูหัวข้อสร้างโปรเจ็กต์ Cloud
วิธีเปิดใช้ API ในโปรเจ็กต์ที่อยู่ในระบบคลาวด์มีดังนี้
คอนโซล Google Cloud
- ในคอนโซล Google Cloud ให้ไปที่เมนู > ผลิตภัณฑ์อื่นๆ > Google Workspace > คลังผลิตภัณฑ์
- คลิก API ที่ต้องการเปิด
- คลิกเปิดใช้
- หากต้องการเปิดใช้ API เพิ่มเติม ให้ทำขั้นตอนเหล่านี้ซ้ำ
Google Cloud CLI
- ติดตั้งหรือเปิดอินเทอร์เฟซบรรทัดคำสั่งของ Google Cloud (CLI)
-
เรียกใช้คำสั่ง
services enable
โดยระบุบริการ API ที่จะเปิดใช้gcloud services enable API_SERVICE_ID
Google Workspace API
ใช้ลิงก์คอนโซล Google Cloud ต่อไปนี้หรืออินเทอร์เฟซบรรทัดคำสั่งของ Google Cloud (CLI) เพื่อเปิดใช้ Google Workspace API ที่เฉพาะเจาะจงในโปรเจ็กต์ที่อยู่ในระบบคลาวด์
API ของ Admin SDK |
เปิดใช้ Admin SDK API
|
Alert Center API |
เปิดใช้ Alert Center API
|
Apps Script API |
เปิดใช้ Apps Script API
|
API ของ CalDAV |
เปิดใช้ CalDAV API
|
API ปฏิทิน |
เปิดใช้ Calendar API
|
Chat API |
เปิดใช้ Chat API
|
Classroom API |
เปิดใช้ Classroom API
|
API ของ Cloud Identity |
เปิดใช้ Cloud Identity API
|
Cloud Search API |
เปิดใช้ Cloud Search API
|
API เอกสาร |
เปิดใช้ Docs API
|
Drive API |
เปิดใช้ Drive API
|
Drive Activity API |
เปิดใช้ API กิจกรรมของไดรฟ์
|
Drive Labels API |
เปิดใช้ Drive Label API
|
API ของฟอร์ม |
เปิดใช้ฟอร์ม API
|
Gmail API |
เปิดใช้ Gmail API
|
Groups Migration API |
เปิดใช้ Groups Migration API
|
Groups Settings API |
เปิดใช้ Groups Settings API
|
API ส่วนเสริมของ Google Workspace |
เปิดใช้ API ส่วนเสริมของ Google Workspace
|
Google Keep API |
เปิดใช้ Google Keep API
|
API เครื่องมือจัดการใบอนุญาตขององค์กร |
เปิดใช้ Enterprise License Manager API
|
API ของตลาดกลาง |
เปิดใช้ Marketplace API
|
SDK ของตลาดกลาง |
เปิดใช้ Marketplace SDK
|
People API |
เปิดใช้ People API
|
API เครื่องมือ Postmaster |
เปิดใช้ Postmaster Tool API
|
Reseller API |
เปิดใช้ Reseller API
|
Sheets API |
เปิดใช้ Sheets API
|
API ของสไลด์ |
เปิดใช้ Slides API
|
Tasks API |
เปิดใช้ Tasks API
|
API ของห้องนิรภัย |
เปิดใช้ Vault API
|
ขั้นตอนถัดไป
ดูวิธีการทำงานของการตรวจสอบสิทธิ์และการให้สิทธิ์ สำหรับ Google Workspace API