> On 2 May 2019, at 11:12, Guillermo Polito wrote:
>
> This makes me remember when I was working doing android mobile apps: there is
> a kitten placeholder service too.
>
> https://placekitten.com/
>
> And status codes too
>
> https://http.cat/
>
>
> ZnEasy getJpeg:
This makes me remember when I was working doing android mobile apps: there
is a kitten placeholder service too.
https://placekitten.com/
And status codes too
https://http.cat/
ZnEasy getJpeg: 'https://placekitten.com/200/300'.
:)
On Wed, May 1, 2019 at 10:41 AM Franz Josef Konrad
wrote:
Am 29.04.2019 um 13:23 schrieb Sven Van Caekenberghe:
Hi,
This is a cool service: https://picsum.photos - it gives you example images
(pictures/photos).
Here is how you can use this from a standard Pharo image (no pun intended).
ZnEasy getJpeg: 'https://picsum.photos/512'.
ImageReadWriter
I forgot the "ext" query parameter which gives the image urls
so
ZnClient new
systemPolicy;
forJsonREST;
url: 'https://uinames.com/api';
queryAt: #region put: #germany;
queryAt: #gender put: #female;
queryAt:#ext put: nil;
get.
--
Sent from:
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:
https://uinames.com/
The api is a GET e.g.
https://uinames.com/api?region=germany=female
& returns JSON with image url and plausible name among other things.
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Perfect, I should have looked at the list of available images ... great catch.
> On 29 Apr 2019, at 18:42, Offray Vladimir Luna Cárdenas
> wrote:
>
> Pretty cool!
>
> This is how you get a Pharo image working, with pun intended ;-):
>
> http://ws.stfx.eu/7WN9SG9YBB6E
>
>
>
> Cheers,
>
>
I remember Paul de Bruicker (cc'ed) used a similar service to get user
profiles (with first and last name and pictures, so you can "simulate"
users in your app, and you could ask for male or female profiles).
I don't remember the name, hopefully he will :)
Esteban A. Maringolo
On Mon, Apr 29,
Hi,
This is a cool service: https://picsum.photos - it gives you example images
(pictures/photos).
Here is how you can use this from a standard Pharo image (no pun intended).
ZnEasy getJpeg: 'https://picsum.photos/512'.
ImageReadWriter formFromStream: (ZnClient new
systemPolicy;
url: