I have a chat program, written in Delphi 7, that I would like to replace long url's posted, with a smaller tinyurl as displayed. I've Googled but haven't found anything helpful quite yet.
Try http://www.scripting.com/stories/2007/06/27/tinyurlHasAnApi.html
You can use the Google Shortener API.
Using REST you can send a JSON value like this:
{"longUrl": "http://stackoverflow.com/"}
and the result looks like this:
{
"kind": "urlshortener#url",
"id": "http://goo.gl/lgNaMv",
"longUrl": "http://stackoverflow.com/"
}
You need implement authentification. Regards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With