Class EventGuest
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
자세한 문서
getAdditionalGuests()
이 참석자가 참석한다고 말한 추가 인원을 가져옵니다.
리턴
Integer
: 이 참석자가 추가로 언급한 참석자 수입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위가 있는 승인이 필요합니다.
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getEmail()
게스트의 이메일 주소를 가져옵니다.
리턴
String
: 게스트의 이메일 주소
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위가 있는 승인이 필요합니다.
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getGuestStatus()
이벤트의 참석자 상태를 가져옵니다.
리턴
GuestStatus
: 이 투숙객의 상태입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위가 있는 승인이 필요합니다.
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
getName()
게스트의 이름을 가져옵니다. 참석자 이름을 사용할 수 없는 경우 이 메서드는 참석자의 이메일 주소를 반환합니다.
리턴
String
: 참석자 이름 또는 이름을 사용할 수 없는 경우 참석자 이메일 주소
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위가 있는 승인이 필요합니다.
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
지원 중단된 메서드
getStatus()
지원 중단되었습니다. 이 함수는 지원 중단되었으며 새 스크립트에서 사용해서는 안 됩니다.
이벤트의 참석자 상태를 가져옵니다.
리턴
String
: 이 투숙객의 상태입니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위가 있는 승인이 필요합니다.
-
https://www.googleapis.com/auth/calendar
-
https://www.googleapis.com/auth/calendar.readonly
-
https://www.google.com/calendar/feeds
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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`"]]