dji.li API Usage


If you want to access the shortener API from other applications:

http://dji.li/api.php?url=http%3A%2F%2Fengadget.com will return the shorten token if the URL is valid (remember to url encode it before passing it on). If the URL is invalid, it will redirect to the index page.

Append &bookmark=true http://dji.li/api.php?url=http%3A%2F%2Fengadget.com&bookmark=true if you want to show the new URL in a graphical interface.

GET: http://dji.li/api.php?js=false AND POST request with the follow data: {url: YOUR_URL} will return the new URL in a graphical interface.