Today's Smalltalk Daily looks at using the client authentication to Google we built to retrieve an Atom feed of calendar events. The code I'm demonstrating is in the public store repository under the name GCal-Example - 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'.
"get the response as XML"
request := EventRangeRequest
from: (Timestamp readFrom: '09/01/10 0:00:00' readStream)
to: (Timestamp readFrom: '10/01/10 0:00:00' readStream).
response := ServiceRequest
makeRequestWith: gAuth
requestPrepObject: request.
xml := response contents.
"save the results as a file for addition to any RSS/Atom aware tool"
file := 'calFeed.xml' asFilename writeStream.
file nextPutAll: xml.
file close.
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"?
Today's Smalltalk Daily looks at using the client authentication to Google we built yesterday. Today's screencast builds a small example of interfacing to Google to get your calendar settings. The code I'm demonstrating is in the public store repository under the name GCal-Example - 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'.
"get settings the hard way"
settingsRequest := SettingsRequest new user: username.
settingsResponse := ServiceRequest
makeRequestWith: gAuth
requestPrepObject: settingsRequest.
CalendarSettings from: ((JsonReader
readFrom: settingsResponse contents readStream)
at: 'data').
"make it simpler"
SettingsRequester getSettingsFor: username using: gAuth
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"?
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"?
Today's Smalltalk Daily looks at using a simple, RESTful web api from a Smalltalk client. 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"?
Today's Smalltalk Daily looks at customizing the hotkeys for the debugger. 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"?
Today's Smalltalk Daily looks at creating an ObjectStudio UI for an existing domain model - the one we created in this screencast. 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"?
Today's Smalltalk Daily looks at using SUnitToo to create a simple unit test - the test is for the code we created in yesterday's screencast. 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"?
Today's Smalltalk Daily looks at hooking up a domain model to a UI. You can follow along by downloading the code here. 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"?
Today's Smalltalk Daily is an overview of the ADvance modeling tool that ships with VisualWorks. Specifically, we use it to produce HTML documentation of a package. 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"?
Today's Smalltalk Daily is an overview of the debugger in VW 7.7.1 and ObjectStudio 8.2.1. In today's screencast, we take a look at the toolbar buttons, which is what you'll use most often when debugging. 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"?