Contacts Service
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Контакты
Устарело. Вместо этого используйте расширенный сервис People API.
Эта служба позволяет сценариям получать доступ к контактам Google и изменять их как для отдельных контактов, так и для групп.
Классы
Имя | Краткое описание |
---|
Address Field
| Поле адреса в контакте. |
Company Field
| Поле «Компания» в контакте. |
Contact
| Контакт содержит имя, адрес и различные контактные данные контакта. |
Contact Group
| ContactGroup — это группа контактов. |
Contacts App
| Этот класс позволяет пользователям получать доступ к своим контактам Google, а также создавать, удалять и обновлять перечисленные в них контакты. |
Custom Field
| Пользовательское поле в Контакте. |
Date Field
| Поле даты в контакте. |
Email Field
| Поле электронной почты в контакте. |
Extended Field
| Перечисление для расширенных полей контактов. |
Field
| Перечисление для полей контактов. |
Gender
| Перечисление для пола контакта. |
IMField
| Поле обмена мгновенными сообщениями в Контакте. |
Phone Field
| Поле номера телефона в Контакте. |
Priority
| Перечисление для приоритета контакта. |
Sensitivity
| Перечисление для чувствительности контакта. |
Url Field
| Поле URL-адреса в контакте. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 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,[]]