28

I want to create Java Spring application using google meet api where I'll generate a meeting link using which two people could join. Basically, it's like creating an event for two attendees (user could be of any domain) and send them meeting link using which they can join at some scheduled time using google hangout.

I tried this example here: https://developers.google.com/calendar/v3/reference/events#resource

But I think this is not the right one since want to generate meeting invite link where two random users can join using a link and in their response there's a hangout link which can only be used by domain users.

Also, in this link, it is mentioned that we can generate meeting URLs with no API calls but then guests who aren't part of my domain won't be able to join and I wanted to have an independent meeting link.

Can someone please point me in the right direction?

Himanshu Arora
  • 688
  • 1
  • 9
  • 20
  • 1
    Can't you add the users to the event at the moment the meeting link is supposed to be sent, via [Events: patch](https://developers.google.com/calendar/v3/reference/events/patch)? By the way, there is no open Meet API. – Iamblichus Apr 13 '20 at 08:36
  • Any news on this? – David Graça Aug 04 '20 at 23:18
  • Does it have to be a private meeting? From what I understand, you want to create a private meeting scheduler basically where you have a platform that already does something and you want to embed google meetings in there, right? – MathieuAuclair Aug 05 '21 at 14:38
  • I think for security reason google is not allowing any random person to join using link. So you can use http://meet.google.com/new API but person whose credentials is used might need to escort other members to join using generated link. You can not let anyone in without host's permission. – Prakash Boda Nov 30 '21 at 14:51

3 Answers3

0

There Is No SDK OR Direct API For Google Meet.

Amir Shaikh
  • 159
  • 1
  • 4
0

You could maybe create a Google Calendar Event and associate it with Google Meet (hangoutsMeet). https://developers.google.com/calendar/api/guides/create-events

Bart Bergmans
  • 4,061
  • 3
  • 28
  • 56
0

As mentioned in following link you can create meeting, add attendees and get meeting link https://developers.google.com/calendar/api/guides/create-events#java

        Event event = new Event()
    .setSummary("Google I/O 2015")
    .setLocation("800 Howard St., San Francisco, CA 94103")
    .setDescription("A chance to hear more about Google's developer products.");
DateTime startDateTime = new DateTime("2015-05-28T09:00:00-07:00");
EventDateTime start = new EventDateTime()
    .setDateTime(startDateTime)
    .setTimeZone("America/Los_Angeles");
event.setStart(start);
DateTime endDateTime = new DateTime("2015-05-28T17:00:00-07:00");
EventDateTime end = new EventDateTime()
    .setDateTime(endDateTime)
    .setTimeZone("America/Los_Angeles");
event.setEnd(end);
String[] recurrence = new String[] {"RRULE:FREQ=DAILY;COUNT=2"};
event.setRecurrence(Arrays.asList(recurrence));
EventAttendee[] attendees = new EventAttendee[] {
    new EventAttendee().setEmail("lpage@example.com"),
    new EventAttendee().setEmail("sbrin@example.com"),
};
event.setAttendees(Arrays.asList(attendees));
EventReminder[] reminderOverrides = new EventReminder[] {
    new EventReminder().setMethod("email").setMinutes(24 * 60),
    new EventReminder().setMethod("popup").setMinutes(10),
};
Event.Reminders reminders = new Event.Reminders()
    .setUseDefault(false)
    .setOverrides(Arrays.asList(reminderOverrides));
event.setReminders(reminders);
String calendarId = "primary";
event = service.events().insert(calendarId, event).execute();
System.out.printf("Event created: %s\n", event.getHtmlLink());

As you see in snippet event.getHtmlLink() gives the meeting URL.

Eskandar Abedini
  • 2,090
  • 2
  • 13