Lessons: 2Length: 8 minutes

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

1.2 How to Use the Google Calendar API

In this lesson, we’ll create a simple app that can access the Google Calendar API. After registering the app with Google, we’ll write code to request permission to access a user’s calendar and to add a new event to that calendar.

Code Snippet

Use the following snippet to authorize your app for access to a user’s calendar.

function checkAuth() {
    gapi.auth.authorize(
      {
        'client_id': CLIENT_ID,
        'scope': SCOPES,
        'immediate': true
      }, handleAuthResult);
}

1.How to Use the Google Calendar API
2 lessons, 07:57

1.1
Introduction
00:40

1.2
How to Use the Google Calendar API
07:17