Class EventGuest
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sự kiệnKhách
Đại diện cho khách mời của một sự kiện.
Các phương thức ngừng hoạt động
Phương thức | Loại dữ liệu trả về | Mô tả ngắn |
getStatus()
| String | Lấy trạng thái của khách mời cho sự kiện. |
Tài liệu chi tiết
getAdditionalGuests()
Lấy số lượng người khác mà khách mời này cho biết sẽ tham dự.
Cầu thủ trả bóng
Integer
– số người khác mà khách này cho biết sẽ tham dự
Ủy quyền
Các tập lệnh sử dụng phương thức này yêu cầu được uỷ quyền bằng một hoặc nhiều phạm vi sau đây hoặc các phạm vi thích hợp từ API REST có liên quan:
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getEmail()
Lấy địa chỉ email của khách.
Cầu thủ trả bóng
String
– địa chỉ email của khách
Ủy quyền
Các tập lệnh sử dụng phương thức này yêu cầu được uỷ quyền bằng một hoặc nhiều phạm vi sau đây hoặc các phạm vi thích hợp từ API REST có liên quan:
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getGuestStatus()
Lấy trạng thái của khách mời cho sự kiện.
Cầu thủ trả bóng
GuestStatus
– trạng thái của khách này
Ủy quyền
Các tập lệnh sử dụng phương thức này yêu cầu được uỷ quyền bằng một hoặc nhiều phạm vi sau đây hoặc các phạm vi thích hợp từ API REST có liên quan:
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getName()
Lấy tên của khách. Nếu không có tên của khách, phương thức này sẽ trả về địa chỉ email của khách.
Cầu thủ trả bóng
String
– tên của khách hoặc địa chỉ email của khách nếu không có tên
Ủy quyền
Các tập lệnh sử dụng phương thức này yêu cầu được uỷ quyền bằng một hoặc nhiều phạm vi sau đây hoặc các phạm vi thích hợp từ API REST có liên quan:
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
Các phương thức ngừng hoạt động
getStatus()
Không dùng nữa. Hàm này không còn được dùng nữa và không nên được sử dụng trong các tập lệnh mới.
Lấy trạng thái của khách mời cho sự kiện.
Cầu thủ trả bóng
String
– trạng thái của khách này
Ủy quyền
Các tập lệnh sử dụng phương thức này yêu cầu được uỷ quyền bằng một hoặc nhiều phạm vi sau đây hoặc các phạm vi thích hợp từ API REST có liên quan:
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eEventGuest\u003c/code\u003e represents an event guest and provides methods to access their information.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve guest details such as the number of additional guests, email address, status, and name using the provided methods.\u003c/p\u003e\n"],["\u003cp\u003eAll methods require authorization with specific scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/calendar\u003c/code\u003e or \u003ccode\u003ehttps://www.google.com/calendar/feeds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetStatus()\u003c/code\u003e method is deprecated and \u003ccode\u003egetGuestStatus()\u003c/code\u003e should be used instead to get the guest's status.\u003c/p\u003e\n"]]],[],null,["# Class EventGuest\n\nEventGuest\n\nRepresents a guest of an event. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------|-------------------------------------------------------------|------------------------------------------------------------------------------|\n| [getAdditionalGuests()](#getAdditionalGuests()) | `Integer` | Gets the number of additional people that this guest has said are attending. |\n| [getEmail()](#getEmail()) | `String` | Gets the email address of the guest. |\n| [getGuestStatus()](#getGuestStatus()) | [GuestStatus](/apps-script/reference/calendar/guest-status) | Gets the status of the guest for the event. |\n| [getName()](#getName()) | `String` | Gets the name of the guest. |\n\n### Deprecated methods\n\n| Method | Return type | Brief description |\n|-----------------------------|-------------|---------------------------------------------|\n| [getStatus()](#getStatus()) | `String` | Gets the status of the guest for the event. |\n\nDetailed documentation\n----------------------\n\n### `get``Additional``Guests()`\n\nGets the number of additional people that this guest has said are attending.\n\n#### Return\n\n\n`Integer` --- the number of additional people this guest has said are attending\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes) or appropriate scopes from the [related REST API](/identity/protocols/googlescopes):\n\n- `https://www.googleapis.com/auth/calendar`\n- `https://www.googleapis.com/auth/calendar.readonly`\n- `https://www.google.com/calendar/feeds`\n\n*** ** * ** ***\n\n### `get``Email()`\n\nGets the email address of the guest.\n\n#### Return\n\n\n`String` --- the guest's email address\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes) or appropriate scopes from the [related REST API](/identity/protocols/googlescopes):\n\n- `https://www.googleapis.com/auth/calendar`\n- `https://www.googleapis.com/auth/calendar.readonly`\n- `https://www.google.com/calendar/feeds`\n\n*** ** * ** ***\n\n### `get``Guest``Status()`\n\nGets the status of the guest for the event.\n\n#### Return\n\n\n[GuestStatus](/apps-script/reference/calendar/guest-status) --- the status of this guest\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes) or appropriate scopes from the [related REST API](/identity/protocols/googlescopes):\n\n- `https://www.googleapis.com/auth/calendar`\n- `https://www.googleapis.com/auth/calendar.readonly`\n- `https://www.google.com/calendar/feeds`\n\n*** ** * ** ***\n\n### `get``Name()`\n\nGets the name of the guest. If the name of the guest is not available, this method returns the\nguest's email address.\n\n#### Return\n\n\n`String` --- the guest's name, or the guest's email address if the name is not available\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes) or appropriate scopes from the [related REST API](/identity/protocols/googlescopes):\n\n- `https://www.googleapis.com/auth/calendar`\n- `https://www.googleapis.com/auth/calendar.readonly`\n- `https://www.google.com/calendar/feeds`\n\nDeprecated methods\n------------------\n\n### `get``Status()`\n\n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nGets the status of the guest for the event.\n\n#### Return\n\n\n`String` --- the status of this guest\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes) or appropriate scopes from the [related REST API](/identity/protocols/googlescopes):\n\n- `https://www.googleapis.com/auth/calendar`\n- `https://www.googleapis.com/auth/calendar.readonly`\n- `https://www.google.com/calendar/feeds`"]]