This is because working with Pharo is becoming much easier every day :)

Hernán

2016-03-14 3:33 GMT-03:00 Sven Van Caekenberghe <s...@stfx.eu>:

> Hernán,
>
> These are nice examples !
>
> Sven
>
> > On 14 Mar 2016, at 04:04, Hernán Morales Durand <
> hernan.mora...@gmail.com> wrote:
> >
> > Hi Stef,
> >
> > Here are some examples:
> >
> > Get world capitals:
> >
> > ((NeoJSONReader fromString: (
> >     ZnEasy
> >         get: 'http://api.geonames.org/countryInfoJSON'
> >         username: 'demo'
> >         password: '') contents) at: #geonames) collect: [ : d | d at:
> #capital ]
> >
> > Get poster of The Terminator movie:
> >
> > (ZnEasy getJpeg: ((NeoJSONReader fromString:
> >     (ZnClient new
> >         url: 'http://www.omdbapi.com/';
> >         queryAt: 't' put: 'The Terminator';
> >         get;
> >         contents)) at: #Poster)) inspect
> >
> > Another one to WorldCat but this needs an API key (I cannot test it now)
> >
> > (ZnClient new
> >     url: 'http://worldcat.org/webservices/kb/rest/collections';
> >     addPathSegment: 'search';
> >     queryAt: 'q' put: 'Plato';
> >     queryAt: 'wskey' put: '...';
> >     get;
> >     contents)) inspect
> >
> > This is another wrapper for language detection (if you want to show a
> simple api wrapper)
> >
> >
> http://80738163270632.blogspot.com/2015/02/languagedetection-api-client-in.html
> >
> > Cheers,
> >
> > Hernán
> >
> >
> > 2016-03-13 17:52 GMT-03:00 stepharo <steph...@free.fr>:
> > Hi hernan and others
> >
> > I'm looking for ideas of simple services
> > capital, dictionaries....
> > forecast that I could access using Zinc in a couple of lines.
> >
> > This is for challenges that I'm writing for the mooc.
> > Stef
> >
> >
> >
> >
>
>
>

Reply via email to