Contacts Service
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รายชื่อติดต่อ
เลิกใช้งานแล้ว แต่ให้ใช้บริการขั้นสูงของ People API แทน
บริการนี้ช่วยให้สคริปต์เข้าถึงและแก้ไข Google Contacts ได้ ทั้งสำหรับรายชื่อติดต่อแต่ละรายการและกลุ่ม
ชั้นเรียน
ชื่อ | รายละเอียดแบบย่อ |
AddressField
| ช่องที่อยู่ในรายชื่อติดต่อ |
CompanyField
| ช่องบริษัทในรายชื่อติดต่อ |
Contact
| รายชื่อติดต่อประกอบด้วยชื่อ ที่อยู่ และรายละเอียดการติดต่อต่างๆ ของผู้ติดต่อ |
ContactGroup
| ContactGroup คือกลุ่มรายชื่อติดต่อ |
ContactsApp
| คลาสนี้ช่วยให้ผู้ใช้เข้าถึง Google Contacts ของตนเอง รวมถึงสร้าง นําออก และอัปเดตรายชื่อติดต่อที่แสดงอยู่ในนั้น |
CustomField
| ช่องที่กำหนดเองในรายชื่อติดต่อ |
DateField
| ช่องวันที่ในรายชื่อติดต่อ |
EmailField
| ช่องอีเมลในรายชื่อติดต่อ |
ExtendedField
| อาร์เรย์แบบจำกัดสำหรับช่องรายชื่อติดต่อแบบขยาย |
Field
| อาร์เรย์แบบจำกัดสำหรับช่องรายชื่อติดต่อ |
Gender
| อาร์เรย์แบบจำกัดสำหรับเพศของผู้ติดต่อ |
IMField
| ช่องการรับส่งข้อความโต้ตอบแบบทันทีในรายชื่อติดต่อ |
PhoneField
| ช่องหมายเลขโทรศัพท์ในรายชื่อติดต่อ |
Priority
| อาร์เรย์แบบจำกัดสำหรับลําดับความสําคัญของรายชื่อติดต่อ |
Sensitivity
| อาร์เรย์แบบจำกัดสำหรับความไวต่อการสัมผัส |
UrlField
| ช่อง URL ในรายชื่อติดต่อ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis Contacts service is deprecated; use the People API advanced service instead.\u003c/p\u003e\n"],["\u003cp\u003eThe Contacts service previously allowed scripts to access and modify Google Contacts data, including individual contacts and groups.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContactsApp\u003c/code\u003e class was the primary interface for creating, removing, and updating contacts within Google Contacts.\u003c/p\u003e\n"],["\u003cp\u003eVarious classes like \u003ccode\u003eContact\u003c/code\u003e, \u003ccode\u003eContactGroup\u003c/code\u003e, and field-specific classes like \u003ccode\u003eAddressField\u003c/code\u003e, \u003ccode\u003eEmailField\u003c/code\u003e were used to represent and manipulate contact data.\u003c/p\u003e\n"],["\u003cp\u003eAlthough deprecated, the documentation details the available classes and methods for interacting with Google Contacts through this older service.\u003c/p\u003e\n"]]],["This deprecated service allows scripts to manage Google Contacts, including individual contacts and groups. Key actions include accessing, creating, removing, and updating contacts via the `ContactsApp`. Contacts contain details like name and address, managed through classes like `AddressField`, `EmailField`, and `PhoneField`. These field classes allow setting and getting addresses and labels and designating a field as primary. Custom, date and other specific fields are also managed, and are able to get and set labels.\n"],null,[]]