part of my app requires an authenticated login to last.fm as in:
http://www.last.fm/api/webauth
my question is:
how to i start a browser session in smalltalk to set up the authenticated connection, then run through each of the api calls i will need to make?
thanks!
On 2/25/10 3:09 AM, "sergio_101" sergiolist@village-buzz.com wrote:
part of my app requires an authenticated login to last.fm as in:
http://www.last.fm/api/webauth
my question is:
how to i start a browser session in smalltalk to set up the authenticated connection, then run through each of the api calls i will need to make?
thanks!
--
peace, sergio photographer, journalist, visionary
Before my new duties as Release manager, was development a new version of Squeak Swiki using HV2 on top of Kom.
Share some tips The starting point Web app HVTransientView subclass: #HVNaughtieWiki
You must have in the class side
rootView ^ HVNaughtieWikiRoot
createModel ^ HVNaughtieWiki new
I attach the subclass of KomAuthDb and the class which is the root and say where and how you log and which authenticated use.
Original KomAuthDb uses user and password, you could see my in progress thing use some more complex.
A typical user record is 'user' an OrderedCollection('mail@mail.com' '4/3/2005' 'nIxbXj1vR')
And a typical log is 127.0.0.1 - garduino [23/Feb/2010:07:42:52] "GET /schemes/squeak/topborder.gif HTTP/1.1" 200 44 127.0.0.1 - garduino [23/Feb/2010:07:42:52] "GET /schemes/squeak/squeak-green.gif HTTP/1.1" 200 1905 127.0.0.1 - garduino [23/Feb/2010:07:42:52] "GET /schemes/squeak/Catcha.gif HTTP/1.1" 200 1183
Hope this helps
Edgar
sergio_101 wrote:
part of my app requires an authenticated login to last.fm as in:
http://www.last.fm/api/webauth
my question is:
how to i start a browser session in smalltalk to set up the authenticated connection, then run through each of the api calls i will need to make?
Just as an FYI, I think you're looking at the wrong place. The page you're referring to states explicitly: "This authentication how-to is for web applications only. Desktop application developers should see the desktop application how-to."
A "web application" is one that runs in a browser to begin with so the question of how to launch a browser for your app isn't really applicable.
But besides that, I think you're looking for the ExternalWebBrowser package which can be found at SqueakMap:
http://map.squeak.org/packagebyname/ExternalWebBrowser
Cheers, - Andreas
oh!
that makes sense!
my bad..
thanks!
okay, i have this loaded up, but i can't seem to find any documentation or examples...
what i am expecting to see is a way to start a web session as an object that i can pass restful parameters (including authentication) to.. and retrieve the necessary xml data..
thanks!
beginners@lists.squeakfoundation.org