Home > Weblog Archive >  2007 >  June >  27


Tinyurl has an API

Wednesday, June 27, 2007 by Dave Winer.

Of course I'd like to do what Twitter does, and generate a Tinyurl in place of a longish URL for each TwitterGram. I had assumed all along that Twitter had a special deal with the TInyurl folks, but apparently not so. They have an open API that is simplicity itself. It's so simple it's almost hard to describe. Permalink to this paragraph

Try clicking on this link:  Permalink to this paragraph

http://tinyurl.com/api-create.php?url=http://scripting.com/  Permalink to this paragraph

It returns a Tinyurl. Copy it to the clipboard, and paste it into the address bar of your browser. it should take you to the home page of my weblog. Apparently it works for any URL you give it. And of course you can call it from a script just as easily as you click a link in a browser. Very nice! Permalink to this paragraph

I'm going to put this into twittergram.com, posthaste. Permalink to this paragraph

PS: It's in, and it works. ;-> Permalink to this paragraph

© Copyright 1994-2007 Dave Winer Mailto icon.

Last update: 6/27/2007; 8:35:33 PM Pacific. "It's even worse than it appears."

Click here to view blogs commenting on  RSS 2.0 feed.