Archive for the ‘TCL’ Category

Google Calendar

Monday, March 2nd, 2009

Ok, so I know Google calendar has been around for ages but I’ve just got around to playing with it. More specifically I’ve started to play around with the API so that I can create events programatically. I’m using TCL, for no other reason than because it is the language that I use at work. Like most modern scripting languages it has all of the packages needed (http, tls) to be able to connect up to the calendar API so its just been a matter of following the instructions / examples in the Google documentation and working out where I had gone wrong! My initial attempts produced a ‘ prolog cannot contain data’ error which I eventually sussed out was caused by my assuming that the XML message containing the event needed to be encoded; it didn’t. Once I’d got that fixed then my code would write events quite nicely. The next bit of code I want to write will allow events to be read, modified and deleted. Once thats done I’ll release it for the world to play with.