PackageDescription: GCal-Example2


G Cal - Example 2

Last published: October 5, 2010 by 'jamesr'

Defines 1 Classes
Extends 1 Classes


A simple example using the Google Calendar and the RSS/Atom syndication code:

"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; look at each item"
feed := Constructor getFeedFromStream: xml readStream.