How to create tinyurl in Delphi

I have a chat program written in Delphi 7 that I would like to replace with a long URL with a smaller tinyurl. I am Googled, but have not found anything useful yet.

+4
source share
2 answers

You can use the Google Shortener API .

Using REST, you can send the JSON value as follows:

{"longUrl": "http://stackoverflow.com/"} 

and the result will look like this:

 { "kind": "urlshortener#url", "id": "http://goo.gl/lgNaMv", "longUrl": "http://stackoverflow.com/" } 

You need to implement authentication. Regards.

+1
source

All Articles