image: google calendar
Google Calendar offers an easy-to-use online interface that can be tailored to personal and business use
R E L A T E D   C O N T E N T
ADVERTISEMENT

Hands on: Programming Google Calendar

Here’s how to link to Google’s online services from your applications

Tim Anderson, Personal Computer World 04 May 2007
ADVERTISEMENT

Hypertext Transfer Protocol (HTTP) is not just for browsing the web.

Although that was its original purpose, the same protocol can be used to retrieve and send data programmatically, enabling applications that run on the desktop, or behind another web page, to interact with applications on the internet.

You might do this to draw on services from websites such as Google, Windows Live, Amazon or Wikipedia; or to create private applications that store data on the internet and can be accessed from any computer; or for business transactions.

Programmatic access gives you full control of the user interface, and also lets you merge web functionality into other applications.

The wider context is the trend towards web-hosted, on-demand applications and the shift of data from desktop PCs and local networks to internet locations. This is very convenient, but not all applications work best in the browser. Using web services with desktop applications gives you the best of both worlds. You can also devise ways of caching internet data locally, for when the internet is offline.

What follows is an example using the Google calendar API. Google calendars are a great way to store your appointments on the internet, and to share forthcoming events with others. Each Google user can create multiple calendars. It’s a free service, and so is ideal for small businesses as well as individuals. You can add comments to events, making this an effective collaboration tool.

Programmatic access to Google calendars makes them more powerful. You can write applications that take data from Google calendars and store it offline, or that copy data to and from other calendaring software, such as Outlook. Another idea is to integrate the Google calendar into custom applications for planning rotas or scheduling deliveries.

Google’s calendar API is part of a larger set of APIs for its suite of online applications, covering blogging, documents and spreadsheets, classified advertisements and more. This family is called Google Data APIs. It is separate from other APIs, such as Google Maps and Google Gadgets.

The Google Data API is based primarily on Atom, an XML standard for news feeds similar to RSS but with more features, extended with the Atom Publishing Protocol to support posting and editing as well as retrieval. This means that applications interact by sending and receiving XML data. The API conforms to the REST principle, by which internet resources are updated using the POST, GET, PUT and DELETE methods that are part of HTTP.

An advantage of using XML and HTTP is that you can interact with the calendar API using almost any language. Google has also created wrappers for Java and .Net, and the example below using Visual Basic .Net to list, create and delete Google calendar appointments. The free Visual Basic Express edition works fine.


All Online
Tags: Visual Programming

Like this story? Spread the news by clicking below:

Post this to Delicious del.icio.us    Post this to Digg Digg this    Post this to reddit reddit!

Permalink for this story
R E A D E R   C O M M E N T S
M A R K E T P L A C E
Get your free demo of Numara Track-It! 8 - the leading help desk solution for IT related issues.
Make presentations, review documents & share your entire desktop. 30-day free trial! (cc required).
Discover how remote support can fuel your IT business in ways you've never thought of before.
Apply ITIL best practices at your service desk while eliminating integration cost. Learn more here.
WAN based, automated, daily vulnerability assessments. Click here to try and request our whitepapers.
Have your product or service listed here >   
Sponsored links
F E A T U R E D   J O B S
United Kingdom | Data Transparency
.NET Software Developer,  £20,000 - £35,000 depending on experience About us Data Transparency is a small, rapidly growing company established in 2006 by an Oxford graduate. We create bespoke web-based data systems that are used in ... more >
London, United Kingdom | Kings College London
Website Content Manager - Mental Health Care Department of Psychology/Computing and Knowledge Management This is a unique opportunity for someone who can combine their talents as a web editor with an excellent ability to communicate ... more >
TWICKENHAM, United Kingdom | Rugby Football Union
RUGBYFIRST PROJECT MANAGER, TWICKENHAM, c. £40,000 per annum   12 month fixed term RugbyFirst, the most modern administration system in British sport, is a game-wide internet-based tool to help run rugby at all levels, with the ... more >
Chichester, United Kingdom | West Sussex County Council
  Senior Application Specialist - Database Specialist, Chichester, £36,800 - £39,300 pa (includes a Market Rate Supplement) IT Services at WSCC supports and manages a variety of systems based on Oracle databases that include third party ... more >
More job opportunities