[ANN] Gravatar for Pharo Smalltalk

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Gravatar for Pharo Smalltalk

Torsten Bergmann
Hi,

The "Gravatar" project is a simple wrapper for the Gravatar API allowing you to get small avatar images for a given registered email address. You can easily access and use it in Pharo.

The project is located on STHub at http://smalltalkhub.com/#!/~TorstenBergmann/Gravatar

To install just open the Pharo configuration browser and load "Gravatar" from there.
You can also install manually, read the docu on the project page.

Some examples:

    Gravatar imageURLFor: '[hidden email]'
   
If you require a different size just evaluate:

    Gravatar imageURLFor: '[hidden email]' size: 32.

If you need the real image you can use Pharos Zinc components suite to get the image form over HTTP and open it on your Pharo desk:

    |form|
        form := ZnEasy getJpeg: (self imageURLFor: '[hidden email]').
        form asMorph openInWorld

In the end it is just a simple class - but I think it may be useful for
others too.

Thx
T.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Gravatar for Pharo Smalltalk

Tobias Pape
Hey Torsten,
On 23.04.2014, at 13:44, Torsten Bergmann <[hidden email]> wrote:

> Hi,
>
> The "Gravatar" project is a simple wrapper for the Gravatar API allowing you to get small avatar images for a given registered email address. You can easily access and use it in Pharo.
>
> The project is located on STHub at http://smalltalkhub.com/#!/~TorstenBergmann/Gravatar
>
> To install just open the Pharo configuration browser and load "Gravatar" from there.
> You can also install manually, read the docu on the project page.
>
> Some examples:
>
>    Gravatar imageURLFor: '[hidden email]'
>
> If you require a different size just evaluate:
>
>    Gravatar imageURLFor: '[hidden email]' size: 32.
>
> If you need the real image you can use Pharos Zinc components suite to get the image form over HTTP and open it on your Pharo desk:
>
>    |form|
> form := ZnEasy getJpeg: (self imageURLFor: '[hidden email]').
> form asMorph openInWorld
>
> In the end it is just a simple class - but I think it may be useful for
> others too.

There is also a seaside-only Gravatar integration on
        http://www.squeaksource.com/GravatarAvatar.html

:)

Best
        -Tobias


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

signature.asc (1K) Download Attachment