BitLy services in-image

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

BitLy services in-image

Sean P. DeNigris
Administrator
I started a little package to wrap the bit.ly URL shortening API in Smalltalk.  It's simple enough to have no dependencies, and works in Pharo and Squeak trunk.  You need a free bit.ly account to use the API.  See BitLyInfo and BitLy class comments, and the specs for more info.

bitLy := BitLy forUser: 'myUsername' withApiKey: 'myApiKey'.
bitLy shorten: 'http://google.com'. "Returns Url: http://bit.ly/h1Bpyx"

Enjoy.
Sean



Cheers,
Sean