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