The TweaK API wrapper is complete! Now for a real world test.
I have finally been able to complete my TweaK API wrapper script. I had to nearly completely rewrite the code, because the curl_exec() function is disabled on my host, and although I am one of the server administrators, I felt it would be more secure to leave it disabled. Then, dot.tk’s “abuse and copyright infringement department” sent me a rather nasty looking automated form email telling me that they had cancelled the domain I was using for the script, because either the web address was inaccessible or it violated their terms and conditions. The problem with that is that they cancelled the domain name within 4 hours of the time I registered it, so of course it wasn’t even ready for use, and I was busy building the wrapper script, and hadn’t even written a basic index page yet, not to mention the fact that the DNS hadn’t even really had a chance to propagate. Well, as far as I can tell, that problem has been solved, and I was able to successfully validate my script as a shortener on Dlvr.it. If it works as it should, the tweet for this blog post will have only one link, and it will be a random 5-character .tk domain name. As far as I know, these links are the absolute shortest URL’s on the internet that are available from an API, weighing in at exactly 15 characters including the http://. If it does work as expected, I will share the link to the wrapper script with anyone who wishes to add it to their own dlvr.it account or download or use the code.
I have finally been able to complete my TweaK API wrapper script. I had to nearly completely rewrite the code, because the curl_exec() function is disabled on my host, and although I am one of the server administrators, I felt it would be more secure to leave it disabled. Then, dot.tk’s “abuse and copyright infringement department” sent me a rather nasty looking automated form email telling me that they had cancelled the domain I was using for the script, because either the web address was inaccessible or it violated their terms and conditions. The problem with that is that they cancelled the domain name within 4 hours of the time I registered it, so of course it wasn’t even ready for use, and I was busy building the wrapper script, and hadn’t even written a basic index page yet, not to mention the fact that the DNS hadn’t even really had a chance to propagate. Well, as far as I can tell, that problem has been solved, and I was able to successfully validate my script as a shortener on Dlvr.it. If it works as it should, the tweet for this blog post will have only one link, and it will be a random 5-character .tk domain name. As far as I know, these links are the absolute shortest URL’s on the internet that are available from an API, weighing in at exactly 15 characters including the http://. If it does work as expected, I will share the link to the wrapper script with anyone who wishes to add it to their own dlvr.it account or download or use the code.
Update
The TweaK API and website no longer work, as they have been replaced by Freenom's Random Domains API, allowing for 5 times the domains, and therefore 5 times the short links. Any references to broken links to the TweaK API are preserved for archival purposes only.