I've been writing a bookmarklet for Twitter that will allow you to post URLs to Twitter, that are first compressed using TinyURL.

So I thought I'd share the TinyURL callback API I wrote.

MY EVENTAttend ffconf.org 2018

The UK's best JS and web development conference. 8 amazing speakers, workshops, socials — find out more & get tickets today.

The API allows the dynamic creation of TinyURLs on the fly using JavaScript.

The API url is: http://remysharp.com/tinyurlapi

Here's the source code for your own hosting: http://remysharp.com/downloads/tinyurlapi.php

There are full instructions and examples on the page along with a demonstration.

Note that since creating the script, TinyURL have changed their page so we can't create tinyurls on the fly (though we can still look up), so I've plugged in is.gk instead for creation.

Want more?

Posts, web development learnings & insights, exclusive workshop and training discounts and more, direct to your inbox.

I won't send you any spam, and you can unsubscribe at any time. Powered by ConvertKit