ภาพรวม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Google Tasks API ช่วยให้คุณค้นหา อ่าน และอัปเดตเนื้อหาและข้อมูลเมตาของ Google Tasks ได้ เอกสารนี้จะอธิบายวิธีใช้รูปแบบการเรียก RESTful และไลบรารีของไคลเอ็นต์สำหรับภาษาโปรแกรมต่างๆ (ปัจจุบันคือ Java, Python และ PHP) เพื่อเข้าถึงและแก้ไขข้อมูล Google Tasks
เว็บไซต์หรือแอปพลิเคชันที่ต้องการการผสานรวมกับ Google Tasks ในระดับลึกยิ่งขึ้นจะใช้ประโยชน์จาก Google Tasks API ได้ เช่น คุณสามารถใช้ Google Tasks API เพื่อจัดการรายการงานของ Google ในแอปบนอุปกรณ์เคลื่อนที่ หรือผสานรวมงานกับแอปเวิร์กโฟลว์ที่ครอบคลุมมากขึ้น เช่น Au-to-do
Google Tasks สร้างขึ้นจากแนวคิดพื้นฐาน 2 ประการดังนี้
- รายการงาน
- รายการที่มีงาน ผู้ใช้มีรายการงานได้มากกว่า 1 รายการเพื่อจัดการงานในแบบที่ต้องการ
- งาน
- งานเดียวที่มีข้อมูล เช่น ชื่องาน บันทึก วันที่ครบกำหนด และวันที่เสร็จสมบูรณ์
โมเดลข้อมูล Tasks API
ทรัพยากรเป็นเอนทิตีข้อมูลแต่ละรายการที่มีตัวระบุที่ไม่ซ้ำกัน Google Tasks API ทำงานโดยใช้ทรัพยากร 2 ประเภท ได้แก่
- ทรัพยากรรายการงาน
- แสดงรายการงาน
- ทรัพยากรของงาน
- หมายถึงงาน
โมเดลข้อมูล Tasks API จะอิงตามกลุ่มทรัพยากรที่เรียกว่าคอลเล็กชัน ดังนี้
- คอลเล็กชันรายการงาน
- ผู้ใช้แต่ละรายจะมีรายการงาน
default
อย่างน้อย 1 รายการ
- คอลเล็กชันงาน
- ประกอบด้วยทรัพยากรงานทั้งหมดภายในทรัพยากรของรายการงานที่เฉพาะเจาะจง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[],[],null,["# Overview\n\nThe Google Tasks API lets you search, read, and update Google Tasks content and metadata. This document describes how to use a RESTful calling style and client libraries for various programming languages (currently Java, Python, and PHP) to access and edit Google Tasks data.\n\nSites or applications that want deeper integration with Google Tasks can leverage the Google Tasks API. For example, you could use the Google Tasks API to manage Google task lists in a mobile app, or you could integrate tasks into a more extensive workflow app such as [Au-to-do](http://code.google.com/p/au-to-do/).\n\nGoogle Tasks is built on two basic concepts:\n\nTask List\n: A list containing tasks. Users can have more than one task list to manage their tasks the way they want.\n\nTask\n: A single task containing information such as the title of the task, notes, the due date, and the completed date.\n\n### Tasks API data model\n\nA resource is an individual data entity with a unique identifier. The Google Tasks API operates on two types of resources:\n\nTask List Resource\n: Represents a task list.\n\nTask Resource\n: Represents a task.\n\nThe Tasks API data model is based on groups of resources, called collections:\n\nTask List Collection\n: Each user has at least one `default` Task List.\n\nTask Collection\n: Consists of all the Task Resources within a specific Task List Resource."]]