title: Accessing Google Calendar API from Node server
body: <p>For some reason, I am having a really hard time accessing Google calendar. </p>
  
  <p>I want to be able to add and remove events in a calendar from my Node.js server.</p>
  
  <p>I am finding really conflicting information from the documents.  </p>
  
  <p>I followed - <a href="https://developers.google.com/identity/protocols/OAuth2ServiceAccount" rel="noreferrer">https://developers.google.com/identity/protocols/OAuth2ServiceAccount</a> which gives a good guide on how to get an acccess token but then at the end it appears it is only for accessing Drive.</p>
  
  <p>I then followed <a href="https://stackoverflow.com/questions/26982523/google-calendar-api-v3-access-not-configured?rq=1">Google Calendar API v3 Access Not Configured</a> which states you only need an API key but this appears as though it is all done from client side so maybe it's different?</p>
  
  <p>I looked at <a href="https://developers.google.com/google-apps/calendar/quickstart/nodejs" rel="noreferrer">https://developers.google.com/google-apps/calendar/quickstart/nodejs</a> as well but that seems very complicated just to make a simple API call to a calendar. The sample code references files which isn't clear where they come from or how to structure them. E.g. <code>var TOKEN_PATH = TOKEN_DIR + 'calendar-nodejs-quickstart.json';</code></p>
  
  <p>I simple guide on how to achieve this would be hugely appreciated.</p>
  
  <p>Thanks</p>