Requesting short URL
Requests should be made to this script:
http://joi.nu/api.phtml?url=http://example.com
API will return JSON result as an array.
- result - either "ok" or "error"
- url - original url submitted
- short_url - short url for link
- id - internal URL id
- duplicate - (optional) if the URL submitted was already in database, this will be set to 1
- error - (optional) if something went wrong, this will contain error description