Register for secret key at https://cdt.li
Below is the example code of php intigration of Cdt.li url shortener service
<?php require($_SERVER["DOCUMENT_ROOT"]."/lib/cdtService.php"); $cdt = new cdtService("JKLJHCXD78764"); //Secret Key $cdt->setPrivate($true); //Optional $cdt->enableAnalytics($true); //Optional echo $cdt->getShortUrl("https://www.facebook.com"); //Get Short URL ?>
- Light weight, asyncronous and powerful social sharing widget
- Easy intigration in any webpage.
- Widget loads after all page content, no effect on performance
<div id="cdt_widget"></div> <script async src="//cdt.li/widget.js"></script>