L9.fr - URL Shortening Service
API
Create an account to use API
If you want to use our API you have to create an account. The "key" it's you account login (your e-mail adress). Your secret is define on your account page.
JSON (JavaScript Object Notation)
The JSON API returns array with every elements you need.
Example:
http://L9.fr/api/json.php?url=http://www.google.com&key=cdb00ea82c&secret=SECRET
Return the following array:
L9 = {"url":"http://L9.fr/66stkq","keycode":"66stkq","errorMessage":"","errorCode":"200"}
Error in the key or secret return this:
L9 = {"url":"","keycode":"","errorMessage":"Error in key or secret !","errorCode":"301"}
REST (Representational State Transfer)
The REST API returns only the shortening url.
Example:
http://L9.fr/api/rest.php?url=http://www.google.com&key=cdb00ea82c&secret=SECRET
Return the following URL:
http://L9.fr/66stkq
Error in the key or secret return this:
Error in key or secret !