একটি একক ক্যালেন্ডার ইভেন্টকে বোঝায়।
পদ্ধতি
| পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
|---|---|---|
add Email Reminder(minutesBefore) | Calendar Event | ইভেন্টটিতে একটি নতুন ইমেল রিমাইন্ডার যোগ করে। |
add Guest(email) | Calendar Event | ইভেন্টে একজন অতিথি যুক্ত করে। |
add Popup Reminder(minutesBefore) | Calendar Event | ইভেন্টটিতে একটি নতুন পপ-আপ নোটিফিকেশন যোগ করে। |
add Sms Reminder(minutesBefore) | Calendar Event | ইভেন্টটিতে একটি নতুন এসএমএস রিমাইন্ডার যোগ করে। |
anyone Can Add Self() | Boolean | ক্যালেন্ডারের কোনো ইভেন্টে ব্যক্তিরা নিজেদের অতিথি হিসেবে যুক্ত করতে পারবে কি না, তা নির্ধারণ করে। |
delete Event() | void | ক্যালেন্ডারের একটি ইভেন্ট মুছে ফেলে। |
delete Tag(key) | Calendar Event | ইভেন্ট থেকে একটি কী/ভ্যালু ট্যাগ মুছে দেয়। |
get All Day End Date() | Date | এই দিনব্যাপী ক্যালেন্ডার ইভেন্টটি যে তারিখে শেষ হবে, সেই তারিখটি পাওয়া যায়। |
get All Day Start Date() | Date | এই দিনব্যাপী ক্যালেন্ডার ইভেন্টটি যে তারিখে শুরু হয়, সেই তারিখটি পাওয়া যায়। |
get All Tag Keys() | String[] | ইভেন্টে সেট করা ট্যাগগুলোর জন্য সমস্ত কী (key) পাওয়া যায়। |
get Color() | String | ক্যালেন্ডার ইভেন্টের রঙ ফেরত দেয়। |
get Creators() | String[] | একটি ইভেন্টের নির্মাতাদের খুঁজে বের করে। |
get Date Created() | Date | ইভেন্টটি তৈরি হওয়ার তারিখটি পাওয়া যায়। |
get Description() | String | ঘটনাটির বিবরণ পাওয়া যায়। |
get Email Reminders() | Integer[] | ইভেন্টটির সমস্ত ইমেল রিমাইন্ডারের মিনিটের মানগুলো সংগ্রহ করে। |
get End Time() | Date | এই ক্যালেন্ডার ইভেন্টটি যে তারিখ ও সময়ে শেষ হয়, তা পাওয়া যায়। |
get Event Series() | Calendar Event Series | এই ঘটনাটি যে পুনরাবৃত্তিমূলক ঘটনাক্রমের অন্তর্ভুক্ত, তা খুঁজে বের করে। |
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 Start Time() | Date | এই ক্যালেন্ডার ইভেন্টটি যে তারিখ ও সময়ে শুরু হয়, তা পেয়ে যায়। |
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 All Day Event() | Boolean | এটি একটি সারাদিনের অনুষ্ঠান কিনা তা নির্ধারণ করে। |
is Owned By Me() | Boolean | আপনি ইভেন্টটির মালিক কিনা তা নির্ধারণ করে। |
is Recurring Event() | Boolean | ঘটনাটি কোনো ঘটনাক্রমের অংশ কি না, তা নির্ধারণ করে। |
remove All Reminders() | Calendar Event | ইভেন্ট থেকে সমস্ত রিমাইন্ডার মুছে দেয়। |
remove Guest(email) | Calendar Event | অনুষ্ঠান থেকে একজন অতিথিকে সরিয়ে দেয়। |
reset Reminders To Default() | Calendar Event | ক্যালেন্ডারের ডিফল্ট সেটিংস ব্যবহার করে রিমাইন্ডারগুলো রিসেট করে। |
set All Day Date(date) | Calendar Event | ইভেন্টের তারিখ নির্ধারণ করে। |
set All Day Dates(startDate, endDate) | Calendar Event | ইভেন্টের তারিখগুলো নির্ধারণ করে। |
set Anyone Can Add Self(anyoneCanAddSelf) | Calendar Event | যারা অতিথি নন, তারা ইভেন্টে নিজেদের যুক্ত করতে পারবেন কিনা তা নির্ধারণ করে। |
set Color(color) | Calendar Event | ক্যালেন্ডার ইভেন্টের রঙ নির্ধারণ করে। |
set Description(description) | Calendar Event | ইভেন্টের বিবরণ নির্ধারণ করে। |
set Guests Can Invite Others(guestsCanInviteOthers) | Calendar Event | অতিথিরা অন্য অতিথিদের আমন্ত্রণ জানাতে পারবে কিনা তা নির্ধারণ করে। |
set Guests Can Modify(guestsCanModify) | Calendar Event | অতিথিরা ইভেন্টটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে। |
set Guests Can See Guests(guestsCanSeeGuests) | Calendar Event | অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে। |
set Location(location) | Calendar Event | ইভেন্টের স্থান নির্ধারণ করে। |
set My Status(status) | Calendar Event | সক্রিয় ব্যবহারকারীর ইভেন্টের অবস্থা (যেমন অংশগ্রহণকারী বা আমন্ত্রিত) নির্ধারণ করে। |
set Tag(key, value) | Calendar Event | কাস্টম মেটাডেটা সংরক্ষণের জন্য ইভেন্টে একটি কী/ভ্যালু ট্যাগ সেট করে। |
set Time(startTime, endTime) | Calendar Event | ইভেন্টটির শুরু এবং শেষের তারিখ ও সময় নির্ধারণ করে। |
set Title(title) | Calendar Event | ইভেন্টের শিরোনাম নির্ধারণ করে। |
set Transparency(transparency) | Calendar Event | ইভেন্টের স্বচ্ছতা নির্ধারণ করে। |
set Visibility(visibility) | Calendar Event | ইভেন্টটির দৃশ্যমানতা নির্ধারণ করে। |
বিস্তারিত ডকুমেন্টেশন
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 | অনুষ্ঠানটির আগের মিনিটের সংখ্যা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
নিক্ষেপ
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 | অতিথির ইমেইল ঠিকানা। |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent ব্যবহৃত হয়।
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | অনুষ্ঠানটির আগের মিনিটের সংখ্যা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
addSmsReminder(minutesBefore)
ইভেন্টটিতে একটি নতুন এসএমএস রিমাইন্ডার যোগ করে। রিমাইন্ডারটি অবশ্যই ইভেন্টের কমপক্ষে ৫ মিনিট আগে এবং সর্বোচ্চ ৪ সপ্তাহ (৪০৩২০ মিনিট) আগে পাঠাতে হবে।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
minutes Before | Integer | অনুষ্ঠানটির আগের মিনিটের সংখ্যা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
নিক্ষেপ
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
deleteEvent()
ক্যালেন্ডারের একটি ইভেন্ট মুছে ফেলে।
// Gets an event by its ID. // TODO(developer): Replace the string with the ID of the event that you want to // delete. const event = CalendarApp.getEventById('abc123456'); // Deletes the event. event.deleteEvent();
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
deleteTag(key)
ইভেন্ট থেকে একটি কী/ভ্যালু ট্যাগ মুছে দেয়।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
key | String | ট্যাগ কী |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
getAllDayEndDate()
এই দিনব্যাপী ক্যালেন্ডার ইভেন্টটি যে তারিখে শেষ হয়, সেই তারিখটি পাওয়া যায়। (যদি এটি দিনব্যাপী ইভেন্ট না হয়, তাহলে এই মেথডটি একটি এক্সেপশন থ্রো করে।) রিটার্ন করা Date টি স্ক্রিপ্টের টাইম জোনে ইভেন্টটি শেষ হওয়ার পরের দিনের শুরুর মধ্যরাত নির্দেশ করে। এর পরিবর্তে ক্যালেন্ডারের টাইম জোন ব্যবহার করতে চাইলে getEndTime() কল করুন।
// Gets the user's default calendar. To get a different calendar, // use getCalendarById() instead. const calendar = CalendarApp.getDefaultCalendar(); // Creates an event named 'My all-day event' for May 16, 2023. const event = calendar.createAllDayEvent( 'My all-day event', new Date('May 16, 2023'), ); // Gets the event's end date and logs it. const endDate = event.getAllDayEndDate(); console.log(endDate);
ফেরত
Date — এই দিনব্যাপী ক্যালেন্ডার ইভেন্টের শেষ তারিখ
নিক্ষেপ
Error — যদি এই ইভেন্টটি সারাদিনের ইভেন্ট না হয়
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.googleapis.com/auth/calendar.readonly -
https://www.google.com/calendar/feeds
getAllDayStartDate()
এই দিনব্যাপী ক্যালেন্ডার ইভেন্টটি যে তারিখে শুরু হয়, সেই তারিখটি পাওয়া যায়। (যদি এটি দিনব্যাপী ইভেন্ট না হয়, তাহলে এই মেথডটি একটি এক্সেপশন থ্রো করে।) রিটার্ন করা Date টি স্ক্রিপ্টের টাইম জোনে ইভেন্টটি শুরু হওয়ার দিনের শুরুর মধ্যরাতকে নির্দেশ করে। এর পরিবর্তে ক্যালেন্ডারের টাইম জোন ব্যবহার করতে চাইলে getStartTime() কল করুন।
// Gets the user's default calendar. To get a different calendar, // use getCalendarById() instead. const calendar = CalendarApp.getDefaultCalendar(); // Creates an event named 'My all-day event' for May 16, 2023. const event = calendar.createAllDayEvent( 'My all-day event', new Date('May 16, 2023'), ); // Gets the event's start date and logs it. const startDate = event.getAllDayStartDate(); console.log(startDate);
ফেরত
Date — এই সারাদিনের ক্যালেন্ডার ইভেন্টটির শুরুর তারিখ
নিক্ষেপ
Error — যদি এই ইভেন্টটি সারাদিনের ইভেন্ট না হয়
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.googleapis.com/auth/calendar.readonly -
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
getEndTime()
এই ক্যালেন্ডার ইভেন্টটি যে তারিখ ও সময়ে শেষ হয়, তা পাওয়া যায়। আপনার অবশ্যই ক্যালেন্ডারটিতে অ্যাক্সেস থাকতে হবে। সারাদিনব্যাপী নয় এমন ইভেন্টগুলোর ক্ষেত্রে, এটি হলো সেই মুহূর্ত যখন ইভেন্টটি শেষ হওয়ার জন্য নির্ধারিত ছিল। সারাদিনব্যাপী ইভেন্টগুলোর জন্য, যেগুলো শুধুমাত্র শেষের তারিখ সংরক্ষণ করে (তারিখ ও সময় নয়), এটি হলো ক্যালেন্ডারের টাইম জোন অনুযায়ী ইভেন্টটি শেষ হওয়ার পরের দিনের শুরুর মধ্যরাত। এটি সব ধরনের ইভেন্টের শেষের সময়ের অর্থপূর্ণ তুলনা করার সুযোগ দেয়; তবে, এটি মূল দিনের অবস্থানকে অপরিবর্তিত নাও রাখতে পারে।
সারাদিনব্যাপী ইভেন্টের ক্ষেত্রে, এই পদ্ধতির পরিবর্তে প্রায় সবসময়ই getAllDayEndDate() কল করা উচিত।
// 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 1st, 2023 that takes // place between 4:00 PM and 5:00 PM. const event = calendar.getEvents( new Date('Feb 01, 2023 16:00:00'), new Date('Feb 01, 2023 17:00:00'), )[0]; if (event) { // If an event exists within the given time frame, gets the date and time at // which the event ends and logs it. console.log(event.getEndTime()); } else { // If no event exists within the given time frame, logs that info 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
getEventSeries()
এই ইভেন্টটি যে পুনরাবৃত্তিমূলক ইভেন্ট সিরিজের অন্তর্ভুক্ত, তা পাওয়া যায়। আপনার ক্যালেন্ডারে অ্যাক্সেস থাকতে হবে। এই ইভেন্টটি কোনো সিরিজের অন্তর্ভুক্ত না হলেও একটি CalendarEventSeries অবজেক্ট রিটার্ন করা হয়, যাতে আপনি নতুন পুনরাবৃত্তির সেটিংস যোগ করতে পারেন।
// 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 18th, 2023 that takes // place between 1:00 PM and 2:00 PM. const event = calendar.getEvents( new Date('Feb 18, 2023 13:00:00'), new Date('Feb 18, 2023 14:00:00'), )[0]; if (event) { // If an event exists within the given time frame, gets the event series for // the event and sets the color to pale green. event.getEventSeries().setColor(CalendarApp.EventColor.PALE_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'); }
ফেরত
CalendarEventSeries — এই ইভেন্টটি যে ইভেন্ট সিরিজের অন্তর্গত, অথবা যদি এটি এখনও কোনো সিরিজের অন্তর্গত না হয় তবে একটি নতুন ইভেন্ট সিরিজ।
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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
getStartTime()
এই ক্যালেন্ডার ইভেন্টটি যে তারিখ ও সময়ে শুরু হয়, তা পাওয়া যায়। সারাদিনব্যাপী নয় এমন ইভেন্টগুলোর ক্ষেত্রে, এটি হলো সেই মুহূর্ত যখন ইভেন্টটি শুরু হওয়ার জন্য নির্ধারিত হয়েছিল। সারাদিনব্যাপী ইভেন্টগুলোর জন্য, যেগুলো শুধুমাত্র শুরুর তারিখ সংরক্ষণ করে (তারিখ ও সময় নয়), এটি হলো ক্যালেন্ডারের টাইম জোনে ইভেন্টটি শুরু হওয়ার দিনের শুরুর মধ্যরাত। এটি সব ধরনের ইভেন্টের শুরুর সময়ের অর্থপূর্ণ তুলনা করার সুযোগ দেয়; তবে, এটি মূল দিনের অবস্থানকে অপরিবর্তিত নাও রাখতে পারে।
সারাদিনব্যাপী ইভেন্টের ক্ষেত্রে, এই পদ্ধতির পরিবর্তে প্রায় সবসময়ই getAllDayStartDate() কল করা উচিত।
// 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. const event = calendar.getEvents( new Date('Feb 01, 2023 16:10:00'), new Date('Feb 01, 2023 16:25:00'), )[0]; // Gets the date and time at which this calendar event begins and logs it. const startTime = event.getStartTime(); console.log(startTime);
ফেরত
Date — এই ক্যালেন্ডার ইভেন্টের শুরুর সময়
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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
isAllDayEvent()
এটি একটি সারাদিনের অনুষ্ঠান কিনা তা নির্ধারণ করে।
// 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. const event = calendar.getEvents( new Date('Jan 31, 2023 09:05:00'), new Date('Jan 31, 2023 09:15:00'), )[0]; // Determines whether this event is an all-day event and logs it. console.log(event.isAllDayEvent());
ফেরত
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
isRecurringEvent()
ঘটনাটি কোনো ঘটনাক্রমের অংশ কি না, তা নির্ধারণ করে।
// 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 Januart 31st, 2023 that takes // place between 9:00 AM and 10:00 AM. const event = calendar.getEvents( new Date('Jan 31, 2023 09:00:00'), new Date('Jan 31, 2023 10:00:00'), )[0]; if (event) { // If an event exists within the given time frame, determines whether the // event is part of an event series and logs it. console.log(event.isRecurringEvent()); } 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'); }
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | অতিথির ইমেল ঠিকানা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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'); }
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setAllDayDate(date)
ইভেন্টের তারিখ নির্ধারণ করে। এই পদ্ধতি প্রয়োগ করলে একটি সাধারণ ইভেন্ট সারাদিনের ইভেন্টে পরিণত হয়।
// 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 17th, 2023 that takes // place between 4:00 PM and 5:00 PM. const event = calendar.getEvents( new Date('Feb 17, 2023 16:00:00'), new Date('Feb 17, 2023 17:00:00'), )[0]; if (event) { // If an event exists within the given time frame, sets the date of the event // and updates it to an all-day event. event.setAllDayDate(new Date('Feb 17, 2023')); } 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 | Date | অনুষ্ঠানের তারিখ (সময়টি উপেক্ষা করা হয়) |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই ক্যালেন্ডারইভেন্টটি
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setAllDayDates(startDate, endDate)
ইভেন্টের তারিখ নির্ধারণ করে। এই পদ্ধতি প্রয়োগ করলে একটি সাধারণ ইভেন্ট সারাদিনের ইভেন্টে পরিণত হয়।
// 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 18th, 2023 that takes // place between 4:00 PM and 5:00 PM. const event = calendar.getEvents( new Date('Feb 18, 2023 16:00:00'), new Date('Feb 18, 2023 17:00:00'), )[0]; if (event) { // If an event exists within the given time frame, sets the event to be an // all-day event from Feb 18th, 2023 until Feb 25th, 2023. Applying this // method changes a regular event into an all-day event. event.setAllDayDates(new Date('Feb 18, 2023'), new Date('Feb 25, 2023')); } 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'); }
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
start Date | Date | ইভেন্টটি শুরু হওয়ার তারিখ (সময় উপেক্ষা করা হয়) |
end Date | Date | যে তারিখে ইভেন্টটি শেষ হয় (সময় উপেক্ষা করা হয়) |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই ক্যালেন্ডারইভেন্টটি
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | কেউ নিজেকে আমন্ত্রণ জানাতে পারে কিনা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 থেকে প্রাপ্ত একটি মান। |
ফেরত
CalendarEvent — এই ক্যালেন্ডার ইভেন্টটি, যা একাধিক ইভেন্টের সমন্বয়ে ব্যবহার করা যায়।
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | নতুন বর্ণনা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | অতিথিরা অন্যদের আমন্ত্রণ জানাতে পারবে কিনা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setGuestsCanModify(guestsCanModify)
অতিথিরা ইভেন্টটি পরিবর্তন করতে পারবে কিনা তা নির্ধারণ করে।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
guests Can Modify | Boolean | অতিথিরা অনুষ্ঠানটি পরিবর্তন করতে পারবেন কিনা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setGuestsCanSeeGuests(guestsCanSeeGuests)
অতিথিরা অন্য অতিথিদের দেখতে পাবে কিনা তা নির্ধারণ করে।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
guests Can See Guests | Boolean | অতিথিরা অন্যদের দেখতে পারে কিনা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | নতুন অবস্থান |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | নতুন অবস্থা |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.googleapis.com/auth/calendar.readonly -
https://www.google.com/calendar/feeds
setTag(key, value)
কাস্টম মেটাডেটা সংরক্ষণের জন্য ইভেন্টে একটি কী/ভ্যালু ট্যাগ সেট করে।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
key | String | ট্যাগ কী |
value | String | ট্যাগ মান |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setTime(startTime, endTime)
ইভেন্টের শুরু এবং শেষের তারিখ ও সময় নির্ধারণ করে। এই পদ্ধতি প্রয়োগ করলে একটি সারাদিনের ইভেন্ট একটি সাধারণ ইভেন্টে রূপান্তরিত হয়।
// Opens the calendar by its ID. // TODO(developer): Replace the ID with your own. const calendar = CalendarApp.getCalendarById( 'abc123456@group.calendar.google.com', ); // Declares a start time of 11:00 AM on February 20th, 2023 and an end time of // 12:00 PM on February 20th, 2023. const startTime = new Date('Feb 20,2023 11:00:00'); const endTime = new Date('Feb 20, 2023 12:00:00'); // Creates an all-day event on February 20th, 2023. const event = calendar.createAllDayEvent('Meeting', new Date('Feb 20,2023')); // Updates the all-day event to a regular event by setting a start and end time // for the event. event.setTime(startTime, endTime);
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
start Time | Date | অনুষ্ঠানটির নতুন সূচনা |
end Time | Date | ঘটনাটির নতুন সমাপ্তি |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই ক্যালেন্ডারইভেন্টটি
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | নতুন শিরোনাম |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট 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 | স্বচ্ছতার মান। |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent ব্যবহৃত হয়।
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds
setVisibility(visibility)
ইভেন্টটির দৃশ্যমানতা নির্ধারণ করে।
প্যারামিটার
| নাম | প্রকার | বর্ণনা |
|---|---|---|
visibility | Visibility |
ফেরত
CalendarEvent — চেইনিংয়ের জন্য এই CalendarEvent
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতি ব্যবহার করে, সেগুলির জন্য নিম্নলিখিত স্কোপগুলির এক বা একাধিকের মাধ্যমে অথবা সংশ্লিষ্ট REST API থেকে উপযুক্ত স্কোপের মাধ্যমে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/calendar -
https://www.google.com/calendar/feeds