Class CalendarEventSeries

ক্যালেন্ডারইভেন্টসিরিজ

ধারাবাহিক ঘটনাকে বোঝায় (একটি পুনরাবৃত্তিমূলক ঘটনা)।

পদ্ধতি

পদ্ধতি রিটার্ন টাইপ সংক্ষিপ্ত বিবরণ
add Email Reminder(minutesBefore) Calendar Event Series ইভেন্টটিতে একটি নতুন ইমেল রিমাইন্ডার যোগ করে।
add Guest(email) Calendar Event Series ইভেন্টে একজন অতিথি যুক্ত করে।
add Popup Reminder(minutesBefore) Calendar Event Series ইভেন্টটিতে একটি নতুন পপ-আপ নোটিফিকেশন যোগ করে।
add Sms Reminder(minutesBefore) Calendar Event Series ইভেন্টটিতে একটি নতুন এসএমএস রিমাইন্ডার যোগ করে।
anyone Can Add Self() Boolean ক্যালেন্ডারের কোনো ইভেন্টে ব্যক্তিরা নিজেদের অতিথি হিসেবে যুক্ত করতে পারবে কি না, তা নির্ধারণ করে।
delete Event Series() void ইভেন্ট সিরিজটি মুছে দেয়।
delete Tag(key) Calendar Event Series ইভেন্ট থেকে একটি কী/ভ্যালু ট্যাগ মুছে দেয়।
get All Tag Keys() String[] ইভেন্টে সেট করা ট্যাগগুলোর জন্য সমস্ত কী (key) পাওয়া যায়।
get Color() String ক্যালেন্ডার ইভেন্টের রঙ ফেরত দেয়।
get Creators() String[] একটি ইভেন্টের নির্মাতাদের খুঁজে বের করে।
get Date Created() Date ইভেন্টটি তৈরি হওয়ার তারিখটি পাওয়া যায়।
get Description() String ঘটনাটির বিবরণ পাওয়া যায়।
get Email Reminders() Integer[] ইভেন্টটির সমস্ত ইমেল রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে।
get Event Type() Event Type এই Event Type বের করে।
get Guest By Email(email) Event Guest ইমেল ঠিকানার মাধ্যমে একজন অতিথিকে খুঁজে বের করে।
get Guest List() Event Guest[] অনুষ্ঠানের মালিক ব্যতীত অনুষ্ঠানের জন্য অতিথিদের নিয়ে আসে।
get Guest List(includeOwner) Event Guest[] অনুষ্ঠানের জন্য অতিথিদের জোগাড় করে, যার মধ্যে অনুষ্ঠানের মালিকরাও থাকতে পারেন।
get Id() String ইভেন্টটির অনন্য iCalUID সংগ্রহ করে।
get Last Updated() Date ইভেন্টটি সর্বশেষ কবে আপডেট করা হয়েছিল, সেই তারিখটি পাওয়া যায়।
get Location() String অনুষ্ঠানটির অবস্থান খুঁজে বের করে।
get My Status() Guest Status সক্রিয় ব্যবহারকারীর ইভেন্টের অবস্থা (যেমন অংশগ্রহণ করছেন বা আমন্ত্রিত) জানা যায়।
get Original Calendar Id() String যে ক্যালেন্ডারে এই ইভেন্টটি মূলত তৈরি করা হয়েছিল, তার আইডিটি সংগ্রহ করুন।
get Popup Reminders() Integer[] ইভেন্টটির সমস্ত পপ-আপ রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে।
get Sms Reminders() Integer[] ইভেন্টটির সমস্ত এসএমএস রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে।
get Tag(key) String ইভেন্টের ট্যাগ মানটি গ্রহণ করে।
get Title() String অনুষ্ঠানটির শিরোনাম পায়।
get Transparency() Event Transparency অনুষ্ঠানটির স্বচ্ছতা সম্পর্কে জানা যায়।
get Visibility() Visibility অনুষ্ঠানটির প্রচার পায়।
guests Can Invite Others() Boolean অতিথিরা অন্য অতিথিদের আমন্ত্রণ জানাতে পারবে কিনা তা নির্ধারণ করে।
guests Can Modify() Boolean অতিথিরা অনুষ্ঠানটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে।
guests Can See Guests() Boolean অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে।
is Owned By Me() Boolean আপনি ইভেন্টটির মালিক কিনা তা নির্ধারণ করে।
remove All Reminders() Calendar Event Series ইভেন্ট থেকে সমস্ত রিমাইন্ডার মুছে দেয়।
remove Guest(email) Calendar Event Series অনুষ্ঠান থেকে একজন অতিথিকে সরিয়ে দেয়।
reset Reminders To Default() Calendar Event Series ক্যালেন্ডারের ডিফল্ট সেটিংস ব্যবহার করে রিমাইন্ডারগুলো রিসেট করে।
set Anyone Can Add Self(anyoneCanAddSelf) Calendar Event Series যারা অতিথি নন, তারা ইভেন্টে নিজেদের যুক্ত করতে পারবেন কিনা তা নির্ধারণ করে।
set Color(color) Calendar Event Series ক্যালেন্ডার ইভেন্টের রঙ নির্ধারণ করে।
set Description(description) Calendar Event Series ইভেন্টের বিবরণ নির্ধারণ করে।
set Guests Can Invite Others(guestsCanInviteOthers) Calendar Event Series অতিথিরা অন্য অতিথিদের আমন্ত্রণ জানাতে পারবে কিনা তা নির্ধারণ করে।
set Guests Can Modify(guestsCanModify) Calendar Event Series অতিথিরা ইভেন্টটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে।
set Guests Can See Guests(guestsCanSeeGuests) Calendar Event Series অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে।
set Location(location) Calendar Event Series ইভেন্টের স্থান নির্ধারণ করে।
set My Status(status) Calendar Event Series সক্রিয় ব্যবহারকারীর ইভেন্টের অবস্থা (যেমন অংশগ্রহণকারী বা আমন্ত্রিত) নির্ধারণ করে।
set Recurrence(recurrence, startDate) Calendar Event Series দিনব্যাপী ইভেন্ট সিরিজের পুনরাবৃত্তির নিয়মাবলী নির্ধারণ করে।
set Recurrence(recurrence, startTime, endTime) Calendar Event Series এই ইভেন্ট সিরিজের পুনরাবৃত্তির নিয়মাবলী নির্ধারণ করে।
set Tag(key, value) Calendar Event Series কাস্টম মেটাডেটা সংরক্ষণের জন্য ইভেন্টে একটি কী/ভ্যালু ট্যাগ সেট করে।
set Title(title) Calendar Event Series ইভেন্টের শিরোনাম নির্ধারণ করে।
set Transparency(transparency) Calendar Event Series ইভেন্টের স্বচ্ছতা নির্ধারণ করে।
set Visibility(visibility) Calendar Event Series ইভেন্টটির দৃশ্যমানতা নির্ধারণ করে।

বিস্তারিত ডকুমেন্টেশন

addEmailReminder(minutesBefore)

ইভেন্টটিতে একটি নতুন ইমেল রিমাইন্ডার যোগ করে। রিমাইন্ডারটি অবশ্যই ইভেন্টের কমপক্ষে ৫ মিনিট আগে এবং সর্বাধিক ৪ সপ্তাহ (৪০৩২০ মিনিট) আগে দিতে হবে।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');

// Adds an email notification for 15 minutes before the event.
event.addEmailReminder(15);

প্যারামিটার

নাম প্রকার বর্ণনা
minutes Before Integer অনুষ্ঠানটির আগের মিনিটের সংখ্যা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

নিক্ষেপ

Error — যদি ইভেন্টটিতে ৫টির বেশি রিমাইন্ডার থাকে অথবা সময়টি বৈধ সীমার মধ্যে না থাকে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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
  const attendeeEmail =
      'user@example.com';  // Email address of the person you need to add
  const calendarId =
      'calendar_123@group.calendar.google.com';  // ID of calendar containing
  // event
  const eventId = '123abc';  // ID of event instance

  const calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  const 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
  const attendeeEmail =
      'user@example.com';  // Email address of the person you need to add
  const calendarId =
      'calendar_123@group.calendar.google.com';  // ID of calendar with the
  // events
  const startDate =
      new Date('YYYY-MM-DD');  // The first date to add the guest to the events
  const endDate =
      new Date('YYYY-MM-DD');  // The last date to add the guest to the events

  const calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  // Get the events within the specified timeframe
  const 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 (let i = 0; i < calEvents.length; i++) {
    const event = calEvents[i];
    event.addGuest(attendeeEmail);
  }
}

প্যারামিটার

নাম প্রকার বর্ণনা
email String অতিথির ইমেইল ঠিকানা।

ফেরত

CalendarEventSeries — এটি চেইনিং-এর জন্য ব্যবহৃত CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

addPopupReminder(minutesBefore)

ইভেন্টে একটি নতুন পপ-আপ নোটিফিকেশন যোগ করে। নোটিফিকেশনটি অবশ্যই ইভেন্টের কমপক্ষে ৫ মিনিট এবং সর্বোচ্চ ৪ সপ্তাহ (৪০৩২০ মিনিট) আগে দিতে হবে।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');

// Adds a pop-up notification for 15 minutes before the event.
event.addPopupReminder(15);

প্যারামিটার

নাম প্রকার বর্ণনা
minutes Before Integer অনুষ্ঠানটির আগের মিনিটের সংখ্যা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

addSmsReminder(minutesBefore)

ইভেন্টটিতে একটি নতুন এসএমএস রিমাইন্ডার যোগ করে। রিমাইন্ডারটি অবশ্যই ইভেন্টের কমপক্ষে ৫ মিনিট আগে এবং সর্বোচ্চ ৪ সপ্তাহ (৪০৩২০ মিনিট) আগে পাঠাতে হবে।

প্যারামিটার

নাম প্রকার বর্ণনা
minutes Before Integer অনুষ্ঠানটির আগের মিনিটের সংখ্যা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

নিক্ষেপ

Error — যদি ইভেন্টটিতে ৫টির বেশি রিমাইন্ডার থাকে অথবা সময়টি বৈধ সীমার মধ্যে না থাকে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

anyoneCanAddSelf()

ক্যালেন্ডারের কোনো ইভেন্টে ব্যক্তিরা নিজেদের অতিথি হিসেবে যুক্ত করতে পারবে কি না, তা নির্ধারণ করে।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');

// Determines whether people can add themselves as guests to the event and logs
// it.
console.log(event.anyoneCanAddSelf());

ফেরত

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)

ইভেন্ট থেকে একটি কী/ভ্যালু ট্যাগ মুছে দেয়।

প্যারামিটার

নাম প্রকার বর্ণনা
key String ট্যাগ কী

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getAllTagKeys()

ইভেন্টে সেট করা ট্যাগগুলোর জন্য সমস্ত কী (key) পাওয়া যায়।

ফেরত

String[] — স্ট্রিং কী-গুলোর একটি অ্যারে

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getColor()

ক্যালেন্ডার ইভেন্টের রঙ ফেরত দেয়।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');

// Gets the color of the calendar event and logs it.
const eventColor = event.getColor();
console.log(eventColor);

ফেরত

String — ইভেন্টের রঙের স্ট্রিং উপস্থাপনা, যা CalendarApp.EventColor থেকে প্রাপ্ত মানগুলির একটি সূচক (১-১১) হিসেবে থাকে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getCreators()

একটি ইভেন্টের নির্মাতাদের খুঁজে বের করে।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');

// Gets a list of the creators of the event and logs it.
console.log(event.getCreators());

ফেরত

String[] — ইভেন্টটির নির্মাতাদের ইমেইল ঠিকানা

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getDateCreated()

ইভেন্টটি তৈরি হওয়ার তারিখটি পাওয়া যায়। আপনার ক্যালেন্ডারে প্রবেশাধিকার থাকতে হবে।

// Opens the calendar by using its ID.
// To get the user's default calendar use CalendarApp.getDefault() instead.
// TODO(developer): Replace the calendar ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 8:10 AM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 08:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, gets the date that the
  // event was created and logs it.
  const eventCreated = event.getDateCreated();
  console.log(eventCreated);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

Date — তৈরির তারিখ

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getDescription()

ইভেন্টের বিবরণ পাওয়া যায়। ক্যালেন্ডারটি সম্পাদনা করার অনুমতি আপনার থাকতে হবে।

// Opens the calendar by its ID.
// To get the user's default calendar use CalendarApp.getDefault() instead.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 4th, 2023 that takes
// place between 4:00 PM and 5:00 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 04, 2023 16:00:00'),
    new Date('Feb 04, 2023 17:00:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the description of the
  // event.
  event.setDescription('Important meeting');

  // Gets the description of the event and logs it.
  const description = event.getDescription();
  console.log(description);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

String — বর্ণনা

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getEmailReminders()

ইভেন্টটির সমস্ত ইমেল রিমাইন্ডারের মিনিটের মান পাওয়া যায়। ক্যালেন্ডারটি সম্পাদনা করার অ্যাক্সেস আপনার থাকতে হবে।

// Opens the calendar by its ID.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 4th, 2023 that takes
// place between 5:00 PM and 6:00 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 04, 2023 15:00:00'),
    new Date('Feb 04, 2023 18:00:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, adds email reminders for
  // the user to be sent at 4 and 7 minutes before the event.
  event.addEmailReminder(4);
  event.addEmailReminder(7);

  // Gets the minute values for all email reminders that are set up for the user
  // for this event and logs it.
  const emailReminder = event.getEmailReminders();
  console.log(emailReminder);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

Integer[] — একটি অ্যারে যার প্রতিটি মান ইভেন্টের কত মিনিট আগে একটি রিমাইন্ডার চালু হবে তা নির্দেশ করে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getEventType()

এই ইভেন্টের EventType পাওয়া যায়।

// Opens the default calendar and logs all out-of-office events for the current day.
const calendar = CalendarApp.getDefaultCalendar();
const events = calendar.getEventsForDay(new Date());
console.log(events.filter(e => e.getEventType() === CalendarApp.EventType.OUT_OF_OFFICE));

ফেরত

EventType — ইভেন্টের প্রকার।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getGuestByEmail(email)

ইমেল ঠিকানার মাধ্যমে একজন অতিথিকে খুঁজে বের করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 25th, 2023 that takes
// place between 5:00 PM and 5:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 25,2023 17:00:00'),
    new Date('Feb 25,2023 17:25:00'),
    )[0];

// Gets a guest by email address.
const guestEmailId = event.getGuestByEmail('alex@example.com');

// If the email address corresponds to an event guest, logs the email address.
if (guestEmailId) {
  console.log(guestEmailId.getEmail());
}

প্যারামিটার

নাম প্রকার বর্ণনা
email String অতিথির ঠিকানা

ফেরত

EventGuest — অতিথি, অথবা ইমেল ঠিকানাটি কোনো অতিথির সাথে না মিললে null।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getGuestList()

অনুষ্ঠানের মালিক ব্যতীত অনুষ্ঠানের জন্য অতিথিদের নিয়ে আসে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 25th, 2023 that takes
// place between 5:00 PM and 5:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 25,2023 17:00:00'),
    new Date('Feb 25,2023 17:25:00'),
    )[0];

// Adds two guests to the event by using their email addresses.
event.addGuest('alex@example.com');
event.addGuest('cruz@example.com');

// Gets the guests list for the event.
const guestList = event.getGuestList();

// Loops through the list to get all the guests and logs their email addresses.
for (const guest of guestList) {
  console.log(guest.getEmail());
}

ফেরত

EventGuest[] — অতিথিদের একটি অ্যারে

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getGuestList(includeOwner)

অনুষ্ঠানের জন্য অতিথিদের জোগাড় করে, যার মধ্যে অনুষ্ঠানের মালিকরাও থাকতে পারেন।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 25th, 2023 that takes
// place between 5:00 PM and 5:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 25,2023 17:00:00'),
    new Date('Feb 25,2023 17:25:00'),
    )[0];

// Gets the guests list for the event, including the owner of the event.
const guestList = event.getGuestList(true);

// Loops through the list to get all the guests and logs it.
for (const guest of guestList) {
  console.log(guest.getEmail());
}

প্যারামিটার

নাম প্রকার বর্ণনা
include Owner Boolean মালিকদের অতিথি হিসেবে অন্তর্ভুক্ত করা হবে কিনা

ফেরত

EventGuest[] — অতিথিদের একটি অ্যারে

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getId()

ইভেন্টটির অনন্য iCalUID পাওয়া যায়। উল্লেখ্য যে, ক্যালেন্ডার v3 API এবং ক্যালেন্ডার অ্যাডভান্সড সার্ভিস দ্বারা ব্যবহৃত iCalUID এবং ইভেন্ট id অভিন্ন নয় এবং এগুলি একে অপরের পরিবর্তে ব্যবহার করা যায় না। এদের অর্থগত একটি পার্থক্য হলো, পুনরাবৃত্তিমূলক ইভেন্টের ক্ষেত্রে একটি ইভেন্টের প্রতিটি পুনরাবৃত্তির ids ভিন্ন ভিন্ন হয়, যদিও তাদের সকলের iCalUID একই থাকে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for January 5th, 2023 that takes place
// between 9:00 AM and 9:25 AM.
// For an event series, use calendar.getEventSeriesById('abc123456@google.com');
// and replace the series ID with your own.
const event = calendar.getEvents(
    new Date('Jan 05, 2023 09:00:00'),
    new Date('Jan 05, 2023 09:25:00'),
    )[0];

// Gets the ID of the event and logs it.
console.log(event.getId());

ফেরত

String — ইভেন্টের iCalUID

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getLastUpdated()

ইভেন্টটি সর্বশেষ কবে আপডেট করা হয়েছিল, সেই তারিখটি পাওয়া যায়।

// Opens the calendar by its ID. You must have view access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:00 PM and 5:00 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:00:00'),
    new Date('Feb 01, 2023 17:00:00'),
    )[0];

// Gets the date the event was last updated and logs it.
const eventUpdatedDate = event.getLastUpdated();
console.log(eventUpdatedDate);

ফেরত

Date — সর্বশেষ হালনাগাদের তারিখ

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getLocation()

অনুষ্ঠানটির অবস্থান খুঁজে বের করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the location of the
  // event to Mumbai.
  event.setLocation('Mumbai');

  // Gets the location of the event and logs it.
  const eventLocation = event.getLocation();
  console.log(eventLocation);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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 রিটার্ন করে।

// Opens the calendar by its ID.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, gets the event status of
  // the effective user and logs it.
  const myStatus = event.getMyStatus();
  console.log(myStatus.toString());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

GuestStatus — অবস্থা

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getOriginalCalendarId()

যে ক্যালেন্ডারে এই ইভেন্টটি মূলত তৈরি করা হয়েছিল, তার আইডিটি সংগ্রহ করুন।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 25th, 2023 that takes
// place between 4:00 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 25,2023 16:00:00'),
    new Date('Feb 25,2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, gets the ID of the calendar
  // where the event was originally created and logs it.
  const calendarId = event.getOriginalCalendarId();
  console.log(calendarId);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

String — মূল ক্যালেন্ডারের আইডি

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getPopupReminders()

ইভেন্টটির সমস্ত পপ-আপ রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 4th, 2023 that takes
// place between 5:05 PM and 5:35 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 04, 2023 17:05:00'),
    new Date('Feb 04, 2023 17:35:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, adds two pop-up reminders
  // to the event. The first reminder pops up 5 minutes before the event starts
  // and the second reminder pops up 3 minutes before the event starts.
  event.addPopupReminder(3);
  event.addPopupReminder(5);

  // Gets the minute values for all pop-up reminders for the event and logs it.
  const popUpReminder = event.getPopupReminders();
  console.log(popUpReminder);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

Integer[] — একটি অ্যারে যার প্রতিটি মান ইভেন্টের কত মিনিট আগে একটি রিমাইন্ডার চালু হবে তা নির্দেশ করে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getSmsReminders()

ইভেন্টটির সমস্ত এসএমএস রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে।

ফেরত

Integer[] — একটি অ্যারে যার প্রতিটি মান ইভেন্টের কত মিনিট আগে একটি রিমাইন্ডার চালু হবে তা নির্দেশ করে।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getTag(key)

ইভেন্টের ট্যাগ মানটি গ্রহণ করে।

প্যারামিটার

নাম প্রকার বর্ণনা
key String চাবি

ফেরত

String — ট্যাগ মান

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getTitle()

অনুষ্ঠানটির শিরোনাম পায়।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for January 31st, 2023 that takes
// place between 9:05 AM and 9:15 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@example.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Jan 31, 2023 09:05:00'),
    new Date('Jan 31, 2023 09:15:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, logs the title of the
  // event.
  console.log(event.getTitle());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

String — শিরোনাম

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getTransparency()

ইভেন্টের স্বচ্ছতা নির্ধারণ করে। কোনো ইভেন্ট TRANSPARENT , অর্থাৎ ক্যালেন্ডারে ঐ সময়ে 'Available' বা 'উপলব্ধ' দেখাচ্ছে, নাকি অস্বচ্ছ OPAQUE , অর্থাৎ ক্যালেন্ডারে ঐ সময়ে 'Busy' বা 'ব্যস্ত' দেখাচ্ছে, তা নির্ধারণ করতে এই পদ্ধতিটি ব্যবহার করুন।

// Gets the first event from the default calendar for today.
const today = new Date();
const event = CalendarApp.getDefaultCalendar().getEventsForDay(today)[0];
// Gets the event's transparency and logs it.
const transparency = event.getTransparency();
Logger.log(transparency);

ফেরত

EventTransparency — স্বচ্ছতার মান।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

getVisibility()

অনুষ্ঠানটির প্রচার পায়।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, gets the visibility of the
  // event and logs it.
  const eventVisibility = event.getVisibility();
  console.log(eventVisibility.toString());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

Visibility — দৃশ্যমানতার মান

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

guestsCanInviteOthers()

অতিথিরা অন্য অতিথিদের আমন্ত্রণ জানাতে পারবে কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID. You must have view access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 9:35 AM and 9:40 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 09:35:00'),
    new Date('Feb 01, 2023 09:40:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, determines whether guests
  // can invite other guests and logs it.
  console.log(event.guestsCanInviteOthers());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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()

অতিথিরা অনুষ্ঠানটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 9:35 AM and 9:40 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 09:35:00'),
    new Date('Feb 01, 2023 09:40:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the event so that
  // guests can't modify it.
  event.setGuestsCanModify(false);

  // Determines whether guests can modify the event and logs it.
  console.log(event.guestsCanModify());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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()

অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID. You must have view access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 9:35 AM and 9:40 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 09:35:00'),
    new Date('Feb 01, 2023 09:40:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, determines whether guests
  // can see other guests and logs it.
  console.log(event.guestsCanSeeGuests());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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()

আপনি ইভেন্টটির মালিক কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID. You must have view access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for January 31st, 2023 that takes
// place between 9:05 AM and 9:15 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Jan 31, 2023 09:05:00'),
    new Date('Jan 31, 2023 09:15:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, determines whether you're
  // the owner of the event and logs it.
  console.log(event.isOwnedByMe());
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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()

ইভেন্ট থেকে সমস্ত রিমাইন্ডার মুছে দেয়।

// Opens the calendar by its ID. You must have edit access to the calendar
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 1,2023 16:10:00'),
    new Date('Feb 1,2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, removes all reminders from
  // the event.
  event.removeAllReminders();
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

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
  const attendeeEmail =
      'user@example.com';  // Email address of the person you need to remove
  const calendarId =
      'calendar_123@group.calendar.google.com';  // ID of calendar containing
  // event
  const eventId = '123abc';  // ID of event instance

  const calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  const 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
  const attendeeEmail =
      'user@example.com';  // Email address of the person you need to remove
  const calendarId =
      'calendar_123@group.calendar.google.com';  // ID of calendar with the
  // events
  const startDate = new Date(
      'YYYY-MM-DD');  // The first date to remove the guest from the events
  const endDate = new Date(
      'YYYY-MM-DD');  // The last date to remove the attendee from the events

  const calendar = CalendarApp.getCalendarById(calendarId);
  if (calendar === null) {
    // Calendar not found
    console.log('Calendar not found', calendarId);
    return;
  }
  // Get the events within the specified timeframe
  const 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 (let i = 0; i < calEvents.length; i++) {
    const event = calEvents[i];
    event.removeGuest(attendeeEmail);
  }
}

প্যারামিটার

নাম প্রকার বর্ণনা
email String অতিথির ইমেল ঠিকানা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

resetRemindersToDefault()

ক্যালেন্ডারের ডিফল্ট সেটিংস ব্যবহার করে রিমাইন্ডারগুলো রিসেট করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 1, 2023 16:10:00'),
    new Date('Feb 1, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, resets the reminders using
  // the calendar's default settings.
  event.resetRemindersToDefault();
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setAnyoneCanAddSelf(anyoneCanAddSelf)

যারা অতিথি নন, তারা ইভেন্টে নিজেদের যুক্ত করতে পারবেন কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 15th, 2023 that takes
// place between 3:30 PM and 4:30 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 15, 2023 15:30:00'),
    new Date('Feb 15, 2023 16:30:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the event so that
  // non-guests can't add themselves to the event.
  event.setAnyoneCanAddSelf(false);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
anyone Can Add Self Boolean কেউ নিজেকে আমন্ত্রণ জানাতে পারে কিনা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setColor(color)

ক্যালেন্ডার ইভেন্টের রঙ নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the color of the
  // calendar event to green.
  event.setColor(CalendarApp.EventColor.GREEN);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
color String একটি পূর্ণসংখ্যা রঙের সূচক স্ট্রিং হিসাবে, অথবা Calendar App.EventColor থেকে প্রাপ্ত একটি মান।

ফেরত

CalendarEventSeries — এই ক্যালেন্ডার ইভেন্টটি, যা একাধিক ইভেন্টের সমন্বয়ে ব্যবহার করা যায়।

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setDescription(description)

ইভেন্টের বিবরণ নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 4th, 2023 that takes
// place between 5:05 PM and 5:35 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 04, 2023 17:05:00'),
    new Date('Feb 04, 2023 17:35:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the description of the
  // event to 'Meeting.'
  event.setDescription('Meeting');
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
description String নতুন বর্ণনা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setGuestsCanInviteOthers(guestsCanInviteOthers)

অতিথিরা অন্য অতিথিদের আমন্ত্রণ জানাতে পারবে কিনা তা নির্ধারণ করে।

// Opens the calendar by its ID.
// TODO(developer): Replace the ID with your own. You must have edit access to
// the calendar.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 9:35 AM and 9:40 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 09:35:00'),
    new Date('Feb 01, 2023 09:40:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the event so that
  // guests can invite other guests.
  event.setGuestsCanInviteOthers(true);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
guests Can Invite Others Boolean অতিথিরা অন্যদের আমন্ত্রণ জানাতে পারবে কিনা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setGuestsCanModify(guestsCanModify)

অতিথিরা ইভেন্টটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে।

প্যারামিটার

নাম প্রকার বর্ণনা
guests Can Modify Boolean অতিথিরা অনুষ্ঠানটি পরিবর্তন করতে পারবেন কিনা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setGuestsCanSeeGuests(guestsCanSeeGuests)

অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে।

প্যারামিটার

নাম প্রকার বর্ণনা
guests Can See Guests Boolean অতিথিরা অন্যদের দেখতে পারে কিনা

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setLocation(location)

ইভেন্টের স্থান নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the location of the
  // event to Noida.
  event.setLocation('Noida');
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
location String নতুন অবস্থান

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setMyStatus(status)

সক্রিয় ব্যবহারকারীর ইভেন্টের অবস্থা (যেমন অংশগ্রহণকারী বা আমন্ত্রিত) নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for February 1st, 2023 that takes
// place between 4:10 PM and 4:25 PM. For an event series, use
// calendar.getEventSeriesById('abc123456@google.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Feb 01, 2023 16:10:00'),
    new Date('Feb 01, 2023 16:25:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, sets the event status for
  // the current user to maybe.
  event.setMyStatus(CalendarApp.GuestStatus.MAYBE);
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
status Guest Status নতুন অবস্থা

ফেরত

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.
const eventSeries = CalendarApp.getDefaultCalendar().getEventSeriesById(
    '123456789@example.com',
);
const startDate = new Date('January 2, 2013 03:00:00 PM EST');
const recurrence = CalendarApp.newRecurrence()
                       .addWeeklyRule()
                       .onlyOnWeekday(CalendarApp.Weekday.WEDNESDAY)
                       .until(new Date('January 1, 2014'));
eventSeries.setRecurrence(recurrence, startDate);

প্যারামিটার

নাম প্রকার বর্ণনা
recurrence Event Recurrence পুনরাবৃত্তির নিয়মগুলি ব্যবহার করতে
start Date Date সিরিজের প্রথম ইভেন্টের তারিখ (শুধুমাত্র দিনটি ব্যবহৃত হয়; সময় উপেক্ষা করা হয়)

ফেরত

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.
const eventSeries = CalendarApp.getDefaultCalendar().getEventSeriesById(
    '123456789@example.com',
);
const startTime = new Date('January 1, 2013 03:00:00 PM EST');
const endTime = new Date('January 1, 2013 04:00:00 PM EST');
const recurrence =
    CalendarApp.newRecurrence()
        .addWeeklyRule()
        .onlyOnWeekdays(
            [CalendarApp.Weekday.TUESDAY, CalendarApp.Weekday.THURSDAY])
        .until(new Date('January 1, 2014'));
eventSeries.setRecurrence(recurrence, startTime, endTime);

প্যারামিটার

নাম প্রকার বর্ণনা
recurrence Event Recurrence পুনরাবৃত্তির নিয়মগুলি ব্যবহার করতে
start Time Date সিরিজের প্রথম ইভেন্টটি শুরু হওয়ার তারিখ ও সময়
end Time Date সিরিজের প্রথম পর্বটি শেষ হওয়ার তারিখ ও সময়

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setTag(key, value)

কাস্টম মেটাডেটা সংরক্ষণের জন্য ইভেন্টে একটি কী/ভ্যালু ট্যাগ সেট করে।

প্যারামিটার

নাম প্রকার বর্ণনা
key String ট্যাগ কী
value String ট্যাগ মান

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setTitle(title)

ইভেন্টের শিরোনাম নির্ধারণ করে।

// Opens the calendar by its ID. You must have edit access to the calendar.
// TODO(developer): Replace the ID with your own.
const calendar = CalendarApp.getCalendarById(
    'abc123456@group.calendar.google.com',
);

// Gets the first event from the calendar for January 31st, 2023 that takes
// place between 9:05 AM and 9:15 AM. For an event series, use
// calendar.getEventSeriesById('abc123456@example.com'); and replace the series
// ID with your own.
const event = calendar.getEvents(
    new Date('Jan 31, 2023 09:05:00'),
    new Date('Jan 31, 2023 09:15:00'),
    )[0];

if (event) {
  // If an event exists within the given time frame, changes its title to
  // Event1.
  event.setTitle('Event1');
} else {
  // If no event exists within the given time frame, logs that information to
  // the console.
  console.log('No events exist for the specified range');
}

প্যারামিটার

নাম প্রকার বর্ণনা
title String নতুন শিরোনাম

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setTransparency(transparency)

ইভেন্টের স্বচ্ছতা নির্ধারণ করে। কোনো ইভেন্ট TRANSPARENT হবে, অর্থাৎ ক্যালেন্ডারটি সেই সময়ে 'Available' হিসেবে দেখাবে, নাকি OPAQUE , অর্থাৎ ক্যালেন্ডারটি সেই সময়ে 'Busy' হিসেবে দেখাবে, তা নির্ধারণ করতে এই পদ্ধতিটি ব্যবহার করুন।

// Gets an event by its ID. For an event series, use getEventSeriesById(iCalId)
// instead.
// TODO(developer): Replace the string with the event ID that you want to get.
const event = CalendarApp.getEventById('abc123456');
// Sets the event's transparency to TRANSPARENT.
event.setTransparency(CalendarApp.EventTransparency.TRANSPARENT);

প্যারামিটার

নাম প্রকার বর্ণনা
transparency Event Transparency স্বচ্ছতার মান।

ফেরত

CalendarEventSeries — এটি চেইনিং-এর জন্য ব্যবহৃত CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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

setVisibility(visibility)

ইভেন্টটির দৃশ্যমানতা নির্ধারণ করে।

প্যারামিটার

নাম প্রকার বর্ণনা
visibility Visibility

ফেরত

CalendarEventSeries — চেইন করার জন্য এই CalendarEventSeries

অনুমোদন

যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:

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