title: Using the CalDav API for Google Calender
body: <p>I have a problem accessing caldav based on these directions:
  <a href="https://developers.google.com/google-apps/calendar/caldav/v2/guide" rel="nofollow">https://developers.google.com/google-apps/calendar/caldav/v2/guide</a></p>
  
  <p>My problem is:
  <strong><a href="https://apidata.googleusercontent.com/caldav/v2/my_username@gmail.com/events?access_token=" rel="nofollow">https://apidata.googleusercontent.com/caldav/v2/my_username@gmail.com/events?access_token=</a>{A_BEARER_TOKEN}</strong></p>
  
  <p><strong>returns null</strong></p>
  
  <p>It says I need to use oauth2, but doesn't specify where I need to put the token in the API code. I could find no examples, so i assumed it was the same as their non-caldav api. That's why I added my bearer token at the end of the URL as an "?access_token={A_BEARER_TOKEN}".</p>
  
  <p>When I use their proprietary Google API (not caldav) with this token, it works just fine. So I assume that my oauth worked properly.</p>
  
  <p>Since they make no mention of what to use for CalDav, I am using "scope=<a href="https://www.googleapis.com/auth/calendar" rel="nofollow">https://www.googleapis.com/auth/calendar</a>" and "access=offline" when I request the oAuth token.  (This is what works for their propietary API).</p>
  
  <p>Also, I have not made my calendar public. It is my assumption that if I use oauth for authentication, sharing is not necessary.</p>