Two little challenges:
'demo'
and ''
as login and password.t
allows one to specify the title of a movie. Define a query to get the poster of 'The Terminator'
.ZnEasy
or ZnClient
. contents
.STON
class (check the class side).queryAt:put:
.
((STON fromString: (
ZnEasy
get: 'http://api.geonames.org/countryInfoJSON'
username: 'demo'
password: '') contents) at: #geonames) collect: [ : d | d at: #capital ]
(ZnEasy getJpeg: ((STON fromString:
(ZnClient new
url: 'http://www.omdbapi.com/';
queryAt: 't' put: 'The Terminator';
get;
contents)) at: #Poster)) inspect
]]]