title: Send invites with google calendar API
body: <p>I have a Java Spring API where I want to integrate Google Calendar.</p>
  
  <p>The task:</p>
  
  <ul>
  <li>Basically creating an event for two attendees (users) and send them an invite with the option to accept/decline (standard GCalendar invite)</li>
  </ul>
  
  <p>I tried this example here: 
  <a href="https://developers.google.com/google-apps/calendar/quickstart/java" rel="nofollow noreferrer">https://developers.google.com/google-apps/calendar/quickstart/java</a></p>
  
  <p>But I think this is not the right one since I authenticate as a user - or do I need this to send them invites via email?</p>
  
  <p>Can anyone point me in the right direction?</p>