Link Shortener with using www.bitly.com API.
I use the www.bitly.com API for shortening links.
'TOKEN' and 'group_guid' you can get after registration on the site www.bitly.com
Three simple functions:
- User input a link to shorten;
- Function checks user input for compliance with the rules and, if necessary, corrects link;
- Function collects data for request and processes it to display a shortcut link to the user.