Comment

Tom von Schwerdtner

You could gain a lot of users if you provided a simple remote interface to generate urls.. eg via a smart bookmark.

Replies

Peter Bengtsson

>>> import xmlrpclib
>>> smurlapi = xmlrpclib.Server('http://smurl.name/')
>>> smurlapi.createSmurl('http://www.somelengthydomain.name/path/test')
'http://smurl.name/6r'

Tom von Schwerdtner

Ooh nice.

Now who wants to go and write a little javascript to pop up a dialog with the smurly url?

Peter Bengtsson

Revisit http://smurl.name and you'll see that new link on the right hand side. Drag that into your Bookmarks and the next time you're on a site with a long URL, just click on "Make it Smurl!" in your Bookmarks.

Tom von Schwerdtner

kudos, it's now in my toolbar.