-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
I have created a calander event with google meet link via nodejs now i want to make meet link in such away that anyone who have goole meet link can join call without getting button like ask to join.
const { google } = require("googleapis");
const credential = require("./service-account.json");
const createEvent = async () => {
try {
const requestId = Math.floor(Math.random() * 100000);
console.log(requestId);
const auth = new google.auth.JWT(
credential.client_email,
null,
credential.private_key,
["https://www.googleapis.com/auth/calendar"],
"googleAdminEmail",
credential.client_id
);
const calendar = google.calendar({ version: "v3", auth });
const event = {
summary: "Appointment",
description: "Meeting with client",
start: {
dateTime: "2023-07-14T10:00:00",
timeZone: "Asia/Karachi",
},
end: {
dateTime: "2023-07-14T11:00:00",
timeZone: "Asia/Karachi",
},
conferenceData: {
createRequest: {
requestId,
conferenceSolutionKey: {
type: "hangoutsMeet",
},
},
},
};
const response = await calendar.events.insert({
calendarId: "primary",
resource: event,
conferenceDataVersion: 1,
});
console.log("Event created: %s", response.data.htmlLink);
console.log("Google Meet link: %s", response.data.hangoutLink);
return;
} catch (error) {
console.log(error);
}
};
createEvent();
Iamshivam-dev
Metadata
Metadata
Assignees
Labels
priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.