หน้านี้แสดงภาพรวมของวิธีใช้ Google Chat API และเอกสารอ้างอิง
Google Chat API มีอินเทอร์เฟซทั้ง gRPC และ REST รวมถึงไลบรารีของไคลเอ็นต์ที่รองรับทั้ง 2 รูปแบบ หากไลบรารีไคลเอ็นต์ที่มีให้ไม่ตรงกับความต้องการของคุณ คุณก็เขียนไลบรารีไคลเอ็นต์ของคุณเองได้โดยใช้อินเทอร์เฟซ gRPC หรือ REST
ไลบรารีของไคลเอ็นต์
วิธีที่แนะนำสำหรับนักพัฒนาซอฟต์แวร์ส่วนใหญ่ในการเรียกใช้ Google Chat API คือการใช้ไลบรารีไคลเอ็นต์ระบบคลาวด์ที่เรารองรับอย่างเป็นทางการสำหรับภาษาที่ต้องการ เช่น Python, Java หรือ Node.js
หากคุณเขียนโค้ดด้วย Google Apps Script ให้ใช้บริการ Chat ขั้นสูงแทนการติดตั้งไลบรารีไคลเอ็นต์
ชื่อประเภท เมธอด และช่อง
ประเภท วิธีการ และชื่อช่องของ Google Chat API จะแตกต่างกันไปโดยขึ้นอยู่กับว่าคุณใช้ไลบรารีของไคลเอ็นต์, gRPC หรือ REST
ไลบรารีไคลเอ็นต์ Cloud จะจัดเรียงตามบริการ gRPC และเมธอดของบริการ
ไลบรารีของไคลเอ็นต์ Google API จัดเรียงเป็นบริการที่มีออบเจ็กต์หรือคลาสที่สอดคล้องกับทรัพยากร REST ซึ่งมีเมธอดที่เกี่ยวข้องด้วย
[[["เข้าใจง่าย","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-02-16 UTC"],[[["This page offers guidance on utilizing the Google Chat API and navigating its reference documentation, including gRPC and REST interfaces."],["Developers are encouraged to use the provided client libraries for Python, Java, Node.js, or the Advanced Chat service for Google Apps Script."],["Type, method, and field names may vary slightly depending on whether you are using client libraries, gRPC, or REST, with details provided on their respective conventions."],["The Google Chat API is built upon protocol buffers, specifically proto3, which may require a basic understanding for certain request and response fields."],["Stable API version v1 is currently available, with access to developer preview features obtainable through the Developer Preview Program."]]],["The Google Chat API offers gRPC and REST interfaces, with corresponding client libraries or the option to create custom ones. Developers can use Cloud Client Libraries, or the Advanced Chat service with Google Apps Script. Type, method, and field names vary across libraries, gRPC, and REST. The API relies on protocol buffers (proto3), which can impact JSON responses due to default value behavior. The current stable version is v1, with a Developer Preview program for testing new features.\n"]]