title: adding an event to google calendar using php
body: <p>I'm working on a client web app where users can book drives with date, time, location...etc</p>
  
  <p>the client required that every booking is added as an event on his google calendar</p>
  
  <p>I created an API key and downloaded the PHP API client:
  <a href="https://github.com/google/google-api-php-client" rel="noreferrer">https://github.com/google/google-api-php-client</a></p>
  
  <p>But when I try to add an event I get a "Login Required" Error</p>
  
  <p>How can I add an event directly without having to use OAuth and consent screen because the function will be executed automatically in the backend, I have full access to the gmail account.</p>