Ah, also quite interesting.

With the latest Zn loaded:

Metacello new
  repository: 'github://svenvc/zinc/repository';
  baseline: 'ZincHTTPComponents';
  load.

You can do:

ZnClient new
  systemPolicy;
  forJsonREST;
  url: 'https://uinames.com/api';
  queryAt: #region put: #germany;
  queryAt: #gender put: #female;
  get.

>>> a Dictionary('gender'->'female' 'name'->'Fabienne' 'region'->'Germany' 
>>> 'surname'->'Schuster' )

> On 29 Apr 2019, at 20:03, Paul DeBruicker <pdebr...@gmail.com> wrote:
> 
> https://uinames.com/ 
> 
> 
> The api is a GET e.g.
> 
> https://uinames.com/api?region=germany&gender=female
> 
> 
> & returns JSON with image url and plausible name among other things.
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


Reply via email to