Sample using the Google data JavaScript Client Library with Google Calendar

Introduction

Here's a simple application that you could use to record meeting notes in Google Calendar. The sample allows you to view today's meetings and select one to take notes for. When you're done you can save the information back to Google Calendar.

To use the application, first click the "Login" button and click the "Grant access" button on the page that follows. You'll be redirected back to this page and the drop down menu will be populated with a list of today's events from your Google Calendar.

When you select an event from the drop down menu, the text fields will be populated with the event data, and a list of the event's attendees will be displayed. You can edit any of the fields in textboxes, and then click the 'Save to Google Calendar' button to store the updated event.

To revoke access to your calendar information, click the "Logout" button at any time.

How it works

This sample demonstrates some key concepts of the JavaScript client library. The list of events in the drop down menu is retrieved using a date range query of the Google Calendar data API. The JavaScript methods that load and save the event information demonstrate how to use the data model provided for interacting with the Google Calendar data API. The sample also illustrates how to use the JavaScript client library to perform authentication using AuthSub.

Resources