Send to Printer


Smalltalk Daily 10/05/10: Integrating with Google Calendar

October 5, 2010 7:45:30.715

Today's Smalltalk Daily looks at integrating a feed from Google calendar with the syndication handling code that is used in BottomFeeder. The code I used in the screencast is below - to load that code, get the packages GCal-Example2 and Syndication-Handling from the public store repository. Make sure to load the latest NetworkAppUtilities as well; the version that loads from disk is not the latest version. To skip to the video, click here.

"get the request token"
gAuth := AuthRequest 
	requestTokenFor: 'cl' 
	user: username
	password: password
	clientName: 'Cincom-VisualWorks-771'.

"get the response as XML"
serviceResponse := ServiceRequest
					makeRequestWith: gAuth 
					requestPrepObject: ExampleRequestPrep new.
xml := serviceResponse contents.

"get the feed object"
feed := Constructor getFeedFromStream: xml readStream.

If you can't see the embedded video directly, you can go directly to YouTube for it. To watch now, click on the viewer below:

You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.

You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?

Technorati Tags: , , , ,

posted by James Robertson

 Share Tweet This