googleapis / googleapis/google-api-nodejs-client

How we can make event on google calander in such way that anyone with link can join.

Offen
#3,299 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
priority: p3 type: question
Vorherrschende Sprache
TypeScript
Sterne
12.2k
Forks
2k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
24

Beschreibung

How we can make event on google calander in such way that anyone with link can join.Now when we create calander event via GUI we have :
![QUESTION](https://github.com/googleapis/google-api-nodejs-client/assets/47149401/2baed332-cf7d-4dd5-8a41-180d5d242ca8)
We can select Meeting access type as OPEN and anyone with meet link can join but how we can do via our googleapis pkg?anyone plz.
I am using this code snippet to create google calander event.
```
const { JWT } = require("google-auth-library");
const { calendar_v3 } = require("@googleapis/calendar");
const Calander = calendar_v3.Calendar;
const credential = require("./service-account.json");

const createEvent = async () => {
try {
const requestId = Math.floor(Math.random() * 100000);

const auth = new JWT(
credential.client_email,
null,
credential.private_key,
["https://www.googleapis.com/auth/calendar"],
"admin@email.app",
credential.client_id
);

const calendar = new Calander({ version: "v3", auth });

const event = {
summary: "Appointment",
description: "Meeting with client",
start: {
dateTime: "2023-08-01T12:00:00",
timeZone: "Asia/Karachi",
},
end: {
dateTime: "2023-08-03T12:30:00",
timeZone: "Asia/Karachi",
},
anyoneCanAddSelf: true,
conferenceData: {
createRequest: {
requestId,
conferenceSolutionKey: {
type: "hangoutsMeet",
},
},
},
attendees: [],
};

const response = await calendar.events.insert({
calendarId: "primary",
resource: event,
conferenceDataVersion: 1,
});

console.log("Google Meet link: %s", response.data.hangoutLink);

return;
} catch (error) {
console.log(error);
}
};
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with the calendar.events.insert call and the event resource shown in the issue, then review the Google Calendar API documentation for conferenceData and meeting access settings. Done means establishing whether the requested access behavior is supported and documenting a verified usage example or limitation.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, node.js
Bereich
api
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
20/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.