Send to Printer

smalltalkDaily

Smalltalk Daily 09/29/10: Using Google Client Auth

September 29, 2010 9:19:59.051

Today's Smalltalk Daily looks at implementing a client interface to Google services. That required implementing the client login scheme google uses (for desktop clients). Today's screencast covers that client auth scheme. The code I'm demonstrating is in the public store repository under the name GoogleClientAuth - the usage in the screencast is below. To skip to the video, click here..


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

"now we can start making requests - this makes a 
simple request to the 'own' feed for google calendar"
serviceResponse := ServiceRequest
					makeRequestWith: gAuth 
					requestPrepObject: ExampleRequestPrep new.
feed := serviceResponse contents

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