Status Update
Comments
bl...@google.com <bl...@google.com> #2
sh...@fieldking.com <sh...@fieldking.com> #3
sb...@google.com <sb...@google.com> #4
See the 'config.accessType' property on spaces when creating them. Setting to open should allow users to join without knocking.
curl --request POST
'
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]'
--header 'Accept: application/json'
--header 'Content-Type: application/json'
--data '{"config":{"accessType":"OPEN"}}'
--compressed
sh...@fieldking.com <sh...@fieldking.com> #5
let oAuth2Client = new google.auth.OAuth2({
clientId: "
clientSecret: "xxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxx",
redirectUri: "
});
event = {
"start": {
"dateTime": `${dateTime}`,
"timeZone": "xyx"
},
"end": {
"dateTime": `${dateTime}`,
"timeZone": "xyx"
},
"attendees": attendeeList,
"guestsCanSeeOtherGuests": false,
"conferenceData": {
"createRequest": {
"requestId": uuidv4(),
"conferenceSolutionKey": { "type": "hangoutsMeet" },
},
"config": {
"accessType": "OPEN"
}
},
"reminders": {
"useDefault": false,
"overrides": [
{ 'method': 'email', 'minutes': 24 * 60 },
{ 'method': 'popup', 'minutes': 10 },
]
}
};
USING google.calendar({ version: "v3" }), WE ARE CREATING EVENT LIKE THIS,
let response = await calendar.events.insert({
auth: oAuth2Client,
calendarId: "xyx@gmail.com"
conferenceDataVersion: 1,
requestBody: event
});
event is body as described above , is shows error when i put config in event object
sh...@fieldking.com <sh...@fieldking.com> #6
sh...@fieldking.com <sh...@fieldking.com> #7
jp...@google.com <jp...@google.com> #8
The field conferenceData.config
is not a valid request for the Calendar API. You will need to modify the Meet using code shared above using
sh...@fieldking.com <sh...@fieldking.com> #9
sh...@fieldking.com <sh...@fieldking.com> #10
sb...@google.com <sb...@google.com> #11
curl --request PATCH \
'https://meet.googleapis.com/v2/spaces/xxxxxxx?key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"config":{"accessType":"OPEN"}}' \
--compressed
jp...@google.com <jp...@google.com> #12
I wrote up an example in NodeJs at
// get the meeting code from the calendar event
const conferenceId = event.conferenceData.conferenceId;
const meetClient = new meetV2.SpacesServiceClient({ authClient: auth });
const space = (
await meetClient.getSpace({
name: `spaces/${conferenceId}`,
})
)[0];
const updatedSpace = (
await meetClient.updateSpace({
space: { name: space.name, config: { accessType: "OPEN" } },
updateMask: {
paths: ["config.access_type"], // must be in snake_case
},
})
)[0];
sh...@fieldking.com <sh...@fieldking.com> #13
sh...@fieldking.com <sh...@fieldking.com> #14
sh...@fieldking.com <sh...@fieldking.com> #15
sh...@fieldking.com <sh...@fieldking.com> #16
sh...@fieldking.com <sh...@fieldking.com> #17
sh...@fieldking.com <sh...@fieldking.com> #18
jp...@google.com <jp...@google.com> #19
The sample code I shared will need to be modified to work with the oauth pattern used in your code. Additionally, you may need to add some scopes.
sh...@fieldking.com <sh...@fieldking.com> #20
sh...@fieldking.com <sh...@fieldking.com> #22
sh...@fieldking.com <sh...@fieldking.com> #23
sh...@fieldking.com <sh...@fieldking.com> #24
sb...@google.com <sb...@google.com> #25
This issue is closed and no further responses on this issue will be given. Please see the above resources for details on how to implement oauth.
Description
Hey team,
I'm using the Google Meet API to schedule meetings, but I'm encountering an issue when inviting participants with non-Gmail accounts. For instance, if I invite two people—one with a Gmail account and the other without—the non-Gmail user is unable to join the meeting directly. Instead, they are prompted to request permission to join, which can be inconvenient. While I'm aware of the option to manually adjust host controls to allow all users, doing this for each meeting is impractical and tedious. Is there a way to configure the API so that host controls are automatically open for all users, regardless of their email domain?