How to create and integrate URL shortener API?