Problem
Google Calendar is used to store concert dates of some famous Russian DJs. The task is to display these dates with titles on the ASP.NET website.
What is Google Calendar?
Google calendar is a free Google service for planning of meetings, events, affairs with a binding to a calendar. It is possible to set a time for a meeting, repetition, a reminder, to invite other participants (service sends the invitation by e-mail). It is possible to create several calendars, each with its own name.
Possible Ways to Solve the Problem
Google has Calendar Data API that allows you to view and update calendar events from your application.
The following Calendar Data API libraries are there:
.NET
Java
JavaScript
PHP
Python
We will use .NET library for our task, because we have ASP.NET application where we need to work with Google Calendar service.
Meaningful Statement of the Problem
Get an array of events from the Google Calendar, using the following information: "Google calendar name", "Google account name", "Google account password".
Display these events on the site.
Solution of the Problem
(1) Get an array of events from the Google Calendar, using the following information: "Google calendar name", "Google account name", "Google account password".
Consider the solution to this problem step by step:
Step 1: Download .NET library for Google data API
You can download the .NET library for Google data API from Google_Data_API_Setup_1.8.0.0.msi. Then, run the installer. The library will be installed into the following folder: C:\Program Files\Google\Google Data API SDK\Redist\.
Step 2: Copy the necessary files to the Web site
Copy the following files from C:\Program Files\Google\Google Data API SDK\Redist\ into Bin folder of the website: Google.GData.AccessControl.dll, Google.GData.Calendar.dll, Google.GData.Client.dll, Google.GData.Extensions.dll.
Next, add the References to these files in the website project.
Go to References-Add Reference-Browse, choose files and press OK.
Read more: Codeproject
0 comments:
Post a Comment