API help to create short URL

You can use this PHP code snippet to create short URL from your website: