title: Meet in Google Calendar API
body: <p>How can I add google meet in google calendar api in java?
  Please help me. I haven't understood the google documentation.
  <a href="https://developers.google.com/calendar/create-events" rel="nofollow noreferrer">https://developers.google.com/calendar/create-events</a>. The source code is given here. Here, I want to create event using users gmail account. I have not any G-suite account</p>
  <pre class="lang-java prettyprint-override"><code>Event event = new Event()
      .setSummary(title)
      .setLocation(location)
      .setDescription(description);
  
  DateTime startDateTime = new DateTime( date +&quot;T&quot;+startTime+&quot;+06:00&quot; );//&quot;2020-05-05T11:00:00+06:00&quot;);
  EventDateTime start = new EventDateTime()
      .setDateTime(startDateTime)
      .setTimeZone(&quot;Asia/Dhaka&quot;);
  event.setStart(start);
  
  DateTime endDateTime = new DateTime(date +&quot;T&quot;+endTime+&quot;+06:00&quot;);//&quot;2020-05-05T12:00:00+06:00&quot;);
  EventDateTime end = new EventDateTime()
      .setDateTime(endDateTime)
      .setTimeZone(&quot;Asia/Dhaka&quot;);
  event.setEnd(end);
  
  String[] recurrence = new String[] {&quot;RRULE:FREQ=DAILY;COUNT=1&quot;};
  event.setRecurrence(Arrays.asList(recurrence));
  
  EventAttendee attendees[];
  
  attendees = new EventAttendee[allAttendees.size()];
  
  for(int i=0; i&lt;allAttendees.size(); i++){
      // System.out.println(allAttendees.get(i));
      attendees[i] = new EventAttendee().setEmail(allAttendees.get(i));
  }
  event.setAttendees(Arrays.asList(attendees));
  
  EventReminder[] reminderOverrides = new EventReminder[] {
      new EventReminder().setMethod(&quot;email&quot;).setMinutes(24 * 60),
      new EventReminder().setMethod(&quot;popup&quot;).setMinutes(10),
  };
  
  
  Event.Reminders reminders = new Event.Reminders()
      .setUseDefault(false)
      .setOverrides(Arrays.asList(reminderOverrides));
  event.setReminders(reminders);
  
  String calendarId = &quot;primary&quot;;
  
  try {
      abc = service.events().insert(calendarId, event);
  } catch (IOException e) {
      e.printStackTrace();
  }
  
  try {
      event = service.events().insert(calendarId, event).execute();
  } catch (IOException e) {
      e.printStackTrace();
  }
  
  String meetingId = event.getHangoutLink();
  System.out.println(&quot;What is meeting ID? = &quot;+meetingId);
  </code></pre>