Class CalendarEventSeries

컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
CalendarEventSeries

일련의 일정 (반복 일정)을 나타냅니다.

메서드

메서드반환 유형간략한 설명
addEmailReminder(minutesBefore)CalendarEventSeries일정에 새 이메일 알림을 추가합니다.
addGuest(email)CalendarEventSeries일정에 참석자를 추가합니다.
addPopupReminder(minutesBefore)CalendarEventSeries일정에 새로운 팝업 알림을 추가합니다.
addSmsReminder(minutesBefore)CalendarEventSeries일정에 새 SMS 알림을 추가합니다.
anyoneCanAddSelf()Boolean모든 사용자가 자신을 초대할 수 있는지 결정합니다.
deleteEventSeries()void이벤트 시리즈를 삭제합니다.
deleteTag(key)CalendarEventSeries이벤트에서 키-값 태그를 삭제합니다.
getAllTagKeys()String[]이벤트에 설정된 태그의 모든 키를 가져옵니다.
getColor()String캘린더 일정의 색상을 반환합니다.
getCreators()String[]이벤트 제작자를 가져옵니다.
getDateCreated()Date이벤트가 만들어진 날짜를 가져옵니다.
getDescription()String이벤트 설명을 가져옵니다.
getEmailReminders()Integer[]일정에 대한 모든 이메일 알림의 분 값을 가져옵니다.
getGuestByEmail(email)EventGuest이메일 주소로 참석자를 가져옵니다.
getGuestList()EventGuest[]일정 소유자를 제외한 일정의 참석자를 가져옵니다.
getGuestList(includeOwner)EventGuest[]일정 소유자를 비롯하여 일정의 참석자를 가져옵니다.
getId()String이벤트의 고유 iCalUID를 가져옵니다.
getLastUpdated()Date이벤트가 마지막으로 업데이트된 날짜를 가져옵니다.
getLocation()String이벤트의 위치를 가져옵니다.
getMyStatus()GuestStatus유효 사용자의 이벤트 상태 (참석 등)를 가져옵니다.
getOriginalCalendarId()String일정이 처음 만들어진 캘린더의 ID를 확인합니다.
getPopupReminders()Integer[]이벤트의 모든 팝업 리마인더의 분 값을 가져옵니다.
getSmsReminders()Integer[]이벤트에 대한 모든 SMS 알림의 분 값을 가져옵니다.
getTag(key)String이벤트의 태그 값을 가져옵니다.
getTitle()String이벤트 제목을 가져옵니다.
getVisibility()Visibility이벤트의 공개 상태를 가져옵니다.
guestsCanInviteOthers()Boolean참석자가 다른 참석자를 초대할 수 있는지 결정합니다.
guestsCanModify()Boolean참석자가 일정을 수정할 수 있는지 결정합니다.
guestsCanSeeGuests()Boolean참석자가 다른 참석자를 볼 수 있는지 결정합니다.
isOwnedByMe()Boolean이벤트가 유효한 사용자 소유인지 확인합니다.
removeAllReminders()CalendarEventSeries일정에서 모든 알림을 삭제합니다.
removeGuest(email)CalendarEventSeries일정에서 참석자를 삭제합니다.
resetRemindersToDefault()CalendarEventSeries캘린더의 기본 설정을 사용하여 리마인더를 재설정합니다.
setAnyoneCanAddSelf(anyoneCanAddSelf)CalendarEventSeries비참석자가 일정에 자신을 추가할 수 있는지 여부를 설정합니다.
setColor(color)CalendarEventSeries캘린더 일정의 색상을 설정합니다.
setDescription(description)CalendarEventSeries이벤트 설명을 설정합니다.
setGuestsCanInviteOthers(guestsCanInviteOthers)CalendarEventSeries참석자가 다른 참석자를 초대할 수 있는지 여부를 설정합니다.
setGuestsCanModify(guestsCanModify)CalendarEventSeries참석자가 일정을 수정할 수 있는지를 설정합니다.
setGuestsCanSeeGuests(guestsCanSeeGuests)CalendarEventSeries참석자가 다른 참석자를 볼 수 있는지 여부를 설정합니다.
setLocation(location)CalendarEventSeries이벤트의 위치를 설정합니다.
setMyStatus(status)CalendarEventSeries유효 사용자의 이벤트 상태 (참석 등)를 설정합니다.
setRecurrence(recurrence, startDate)CalendarEventSeries종일 일정 시리즈의 반복 규칙을 설정합니다.
setRecurrence(recurrence, startTime, endTime)CalendarEventSeries이 이벤트 시리즈의 반복 규칙을 설정합니다.
setTag(key, value)CalendarEventSeries맞춤 메타데이터를 저장하기 위해 이벤트에 키/값 태그를 설정합니다.
setTitle(title)CalendarEventSeries일정 제목을 설정합니다.
setVisibility(visibility)CalendarEventSeries이벤트의 공개 상태를 설정합니다.

자세한 문서

addEmailReminder(minutesBefore)

일정에 새 이메일 알림을 추가합니다. 알림은 이벤트가 시작되기 최소 5분 전부터 최대 4주 (40320분)까지 진행되어야 합니다.

매개변수

이름유형설명
minutesBeforeInteger이벤트 시간(분) 전

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

예외 처리

Error: 이벤트에서 알림이 6회 이상이거나 시간이 법적 범위 내에 있지 않은 경우

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

addGuest(email)

일정에 참석자를 추가합니다.

// Example 1: Add a guest to one event
function addAttendeeToEvent() {
  // Replace the below values with your own
  let attendeeEmail = 'user@example.com'; // Email address of the person you need to add
  let calendarId = 'calendar_123@group.calendar.google.com'; // ID of calendar containing event
  let eventId = '123abc'; // ID of event instance

  let calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
    }
  let event = calendar.getEventById(eventId);
  if (event === null) {
    // Event not found
    console.log('Event not found', eventId);
    return;
    }
  event.addGuest(attendeeEmail);
  }

// Example 2: Add a guest to all events on a calendar within a specified timeframe
function addAttendeeToAllEvents(){
// Replace the following values with your own
  let attendeeEmail = 'user@example.com'; // Email address of the person you need to add
  let calendarId = 'calendar_123@group.calendar.google.com'; // ID of calendar with the events
  let startDate = new Date("YYYY-MM-DD"); // The first date to add the guest to the events
  let endDate = new Date("YYYY-MM-DD"); // The last date to add the guest to the events

  let calendar = CalendarApp.getCalendarById(calendarId);
    if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  // Get the events within the specified timeframe
  let calEvents = calendar.getEvents(startDate,endDate);
  console.log(calEvents.length); // Checks how many events are found
  // Loop through all events and add the attendee to each of them
  for (var i = 0; i < calEvents.length; i++) {
  let event = calEvents[i];
  event.addGuest(attendeeEmail);
  }
}

매개변수

이름유형설명
emailString참석자의 이메일 주소입니다.

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

addPopupReminder(minutesBefore)

일정에 새로운 팝업 알림을 추가합니다. 알림은 이벤트가 시작되기 최소 5분 전부터 최대 4주 (40320분)까지 진행되어야 합니다.

매개변수

이름유형설명
minutesBeforeInteger이벤트 시간(분) 전

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

addSmsReminder(minutesBefore)

일정에 새 SMS 알림을 추가합니다. 알림은 이벤트가 시작되기 최소 5분 전부터 최대 4주 (40320분)까지 진행되어야 합니다.

매개변수

이름유형설명
minutesBeforeInteger이벤트 시간(분) 전

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

예외 처리

Error: 이벤트에서 알림이 6회 이상이거나 시간이 법적 범위 내에 있지 않은 경우

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

anyoneCanAddSelf()

모든 사용자가 자신을 초대할 수 있는지 결정합니다.

Return

Boolean — 참석자가 아닌 사용자가 일정에 자신을 추가할 수 있는 경우 true, 허용되지 않는 경우 false

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

deleteEventSeries()

이벤트 시리즈를 삭제합니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

deleteTag(key)

이벤트에서 키-값 태그를 삭제합니다.

매개변수

이름유형설명
keyString태그 키

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

getAllTagKeys()

이벤트에 설정된 태그의 모든 키를 가져옵니다.

Return

String[] — 문자열 키 배열입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getColor()

캘린더 일정의 색상을 반환합니다.

Return

String: CalendarApp.EventColor의 값 색인 (1~11)으로 표시되는 이벤트 색상의 문자열 표현입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getCreators()

이벤트 제작자를 가져옵니다.

Return

String[]: 이벤트 작성자의 이메일 주소입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getDateCreated()

이벤트가 만들어진 날짜를 가져옵니다.

Return

Date — 만든 날짜

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getDescription()

이벤트 설명을 가져옵니다.

Return

String — 설명

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getEmailReminders()

일정에 대한 모든 이메일 알림의 분 값을 가져옵니다.

Return

Integer[]: 각 값이 알림이 트리거된 이벤트가 발생하기 전의 시간(분)에 해당하는 배열입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getGuestByEmail(email)

이메일 주소로 참석자를 가져옵니다.

매개변수

이름유형설명
emailString게스트의 주소

Return

EventGuest: 참석자 또는 이메일 주소가 참석자와 일치하지 않는 경우 null

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

getGuestList()

일정 소유자를 제외한 일정의 참석자를 가져옵니다.

Return

EventGuest[] — 참석자의 배열

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getGuestList(includeOwner)

일정 소유자를 비롯하여 일정의 참석자를 가져옵니다.

매개변수

이름유형설명
includeOwnerBoolean소유자를 게스트로 포함할지 여부

Return

EventGuest[] — 참석자의 배열

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getId()

이벤트의 고유 iCalUID를 가져옵니다. Calendar v3 APICalendar 고급 서비스에서 사용하는 iCalUID 및 이벤트 id는 동일하지 않으므로 서로 바꿔서 사용할 수 없습니다. 의미 체계의 한 가지 차이점은 반복 이벤트에서 한 이벤트의 모든 어커런스는 서로 다르지만 ids는 모두 동일한 iCalUID를 공유한다는 점입니다.

Return

String: 이벤트의 iCalUID

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getLastUpdated()

이벤트가 마지막으로 업데이트된 날짜를 가져옵니다.

Return

Date: 최종 업데이트 날짜

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getLocation()

이벤트의 위치를 가져옵니다.

Return

String: 이벤트 위치

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getMyStatus()

유효 사용자의 이벤트 상태 (참석 등)를 가져옵니다. 실제 사용자가 이벤트 소유자인 경우 항상 GuestStatus.OWNER를 반환합니다.

Return

GuestStatus — 상태

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getOriginalCalendarId()

일정이 처음 만들어진 캘린더의 ID를 확인합니다.

Return

String: 원래 캘린더의 ID

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getPopupReminders()

이벤트의 모든 팝업 리마인더의 분 값을 가져옵니다.

Return

Integer[]: 각 값이 알림이 트리거된 이벤트가 발생하기 전의 시간(분)에 해당하는 배열입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getSmsReminders()

이벤트에 대한 모든 SMS 알림의 분 값을 가져옵니다.

Return

Integer[]: 각 값이 알림이 트리거된 이벤트가 발생하기 전의 시간(분)에 해당하는 배열입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getTag(key)

이벤트의 태그 값을 가져옵니다.

매개변수

이름유형설명
keyString

Return

String: 태그 값

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getTitle()

이벤트 제목을 가져옵니다.

Return

String — 제목

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

getVisibility()

이벤트의 공개 상태를 가져옵니다.

Return

Visibility: 공개 상태 값

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

guestsCanInviteOthers()

참석자가 다른 참석자를 초대할 수 있는지 결정합니다.

Return

Boolean: 참석자가 다른 사람을 초대할 수 있는 경우 true, 초대할 수 없는 경우 false

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

guestsCanModify()

참석자가 일정을 수정할 수 있는지 결정합니다.

Return

Boolean — 참석자가 일정을 수정할 수 있는 경우 true, 수정할 수 없는 경우 false

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

guestsCanSeeGuests()

참석자가 다른 참석자를 볼 수 있는지 결정합니다.

Return

Boolean: 참석자가 다른 참석자를 볼 수 있는 경우 true, 표시되지 않는 경우 false

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

isOwnedByMe()

이벤트가 유효한 사용자 소유인지 확인합니다.

Return

Boolean — 유효 사용자가 이벤트를 소유한 경우 true, 그렇지 않은 경우 false

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

removeAllReminders()

일정에서 모든 알림을 삭제합니다.

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

removeGuest(email)

일정에서 참석자를 삭제합니다.

// Example 1: Remove a guest from one event
function removeGuestFromEvent() {
  // Replace the below values with your own
  let attendeeEmail = 'user@example.com'; // Email address of the person you need to remove
  let calendarId = 'calendar_123@group.calendar.google.com'; // ID of calendar containing event
  let eventId = '123abc'; // ID of event instance

  let calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
    }
  let event = calendar.getEventById(eventId);
  if (event === null) {
    // Event not found
    console.log('Event not found', eventId);
    return;
    }
  event.removeGuest(attendeeEmail);
  }

// Example 2: Remove a guest from all events on a calendar within a specified timeframe
function removeGuestFromAllEvents(){
// Replace the following values with your own
  let attendeeEmail = 'user@example.com'; // Email address of the person you need to remove
  let calendarId = 'calendar_123@group.calendar.google.com'; // ID of calendar with the events
  let startDate = new Date("YYYY-MM-DD"); // The first date to remove the guest from the events
  let endDate = new Date("YYYY-MM-DD"); // The last date to remove the attendee from the events

  let calendar = CalendarApp.getCalendarById(calendarId);
    if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  // Get the events within the specified timeframe
  let calEvents = calendar.getEvents(startDate,endDate);
  console.log(calEvents.length); // Checks how many events are found
  // Loop through all events and remove the attendee from each of them
  for (var i = 0; i < calEvents.length; i++) {
  let event = calEvents[i];
  event.removeGuest(attendeeEmail);
  }
}

매개변수

이름유형설명
emailString참석자의 이메일 주소

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

resetRemindersToDefault()

캘린더의 기본 설정을 사용하여 리마인더를 재설정합니다.

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setAnyoneCanAddSelf(anyoneCanAddSelf)

비참석자가 일정에 자신을 추가할 수 있는지 여부를 설정합니다.

매개변수

이름유형설명
anyoneCanAddSelfBoolean모든 사용자가 자신을 초대할 수 있는지 여부

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setColor(color)

캘린더 일정의 색상을 설정합니다.

매개변수

이름유형설명
colorString문자열 형태의 정수 색상 색인 또는 CalendarApp.EventColor의 값입니다.

Return

CalendarEventSeries: 체인을 위한 이 캘린더 일정입니다.

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setDescription(description)

이벤트 설명을 설정합니다.

매개변수

이름유형설명
descriptionString새 설명

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setGuestsCanInviteOthers(guestsCanInviteOthers)

참석자가 다른 참석자를 초대할 수 있는지 여부를 설정합니다.

매개변수

이름유형설명
guestsCanInviteOthersBoolean참석자의 다른 사용자 초대 가능 여부

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setGuestsCanModify(guestsCanModify)

참석자가 일정을 수정할 수 있는지를 설정합니다.

매개변수

이름유형설명
guestsCanModifyBoolean참석자가 일정을 수정할 수 있는지 여부

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setGuestsCanSeeGuests(guestsCanSeeGuests)

참석자가 다른 참석자를 볼 수 있는지 여부를 설정합니다.

매개변수

이름유형설명
guestsCanSeeGuestsBoolean참석자의 공개 상태

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setLocation(location)

이벤트의 위치를 설정합니다.

매개변수

이름유형설명
locationString새 위치

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setMyStatus(status)

유효 사용자의 이벤트 상태 (참석 등)를 설정합니다.

매개변수

이름유형설명
statusGuestStatus새 상태

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.google.com/calendar/feeds

setRecurrence(recurrence, startDate)

종일 일정 시리즈의 반복 규칙을 설정합니다. 이 메서드를 적용하면 일반 이벤트 시리즈가 종일 이벤트 시리즈로 변경됩니다.

// Sets the events in a series to take place every Wednesday in 2013.
var eventSeries = CalendarApp.getDefaultCalendar().getEventSeriesById('123456789@google.com');
var startDate = new Date('January 2, 2013 03:00:00 PM EST');
var recurrence = CalendarApp.newRecurrence().addWeeklyRule()
    .onlyOnWeekday(CalendarApp.Weekday.WEDNESDAY)
    .until(new Date('January 1, 2014'));
eventSeries.setRecurrence(recurrence, startDate);

매개변수

이름유형설명
recurrenceEventRecurrence사용할 반복 규칙
startDateDate반복 일정 중 첫 번째 이벤트의 날짜입니다. 해당 날짜만 사용되며 시간은 무시됩니다.

Return

CalendarEventSeries — 체이닝을 위한 이 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setRecurrence(recurrence, startTime, endTime)

이 이벤트 시리즈의 반복 규칙을 설정합니다. 이 메서드를 적용하면 종일 이벤트 시리즈가 일반 이벤트 시리즈로 변경됩니다.

// Sets the events in a series to take place from 3pm to 4pm every Tuesday and Thursday in
// 2013.
var eventSeries = CalendarApp.getDefaultCalendar().getEventSeriesById('123456789@google.com');
var startTime = new Date('January 1, 2013 03:00:00 PM EST');
var endTime = new Date('January 1, 2013 04:00:00 PM EST');
var recurrence = CalendarApp.newRecurrence().addWeeklyRule()
     .onlyOnWeekdays([CalendarApp.Weekday.TUESDAY, CalendarApp.Weekday.THURSDAY])
     .until(new Date('January 1, 2014'));
eventSeries.setRecurrence(recurrence, startTime, endTime);

매개변수

이름유형설명
recurrenceEventRecurrence사용할 반복 규칙
startTimeDate반복 일정 중 첫 번째 일정이 시작되는 날짜 및 시간
endTimeDate반복 일정 중 첫 번째 일정이 끝나는 날짜 및 시간

Return

CalendarEventSeries — 체이닝을 위한 이 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setTag(key, value)

맞춤 메타데이터를 저장하기 위해 이벤트에 키/값 태그를 설정합니다.

매개변수

이름유형설명
keyString태그 키
valueString태그 값

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setTitle(title)

일정 제목을 설정합니다.

매개변수

이름유형설명
titleString새 제목

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds

setVisibility(visibility)

이벤트의 공개 상태를 설정합니다.

매개변수

이름유형설명
visibilityVisibility

Return

CalendarEventSeries: 체이닝용 CalendarEventSeries

승인

이 방법을 사용하는 스크립트에는 다음 범위 중 하나 이상 또는 관련 REST API의 적절한 범위를 사용하는 승인이 필요합니다.

  • https://www.googleapis.com/auth/calendar
  • https://www.google.com/calendar/feeds