The ArunaURL API is very simple. It is basically a URL you access by a ordinary GET request to http://arunaurl.com/create_url.php with the parameters url (a URL encoded URL) and type (the reply type). The reply types supported now are:
| js | Javascript (A javascript function named com_arunaurl() which returns the ArunaURL ID as a string if called or "Database error" if an error occured) |
| php | PHP (A PHP function named com_arunaurl() which returns the ArunaURL ID as a string if called or "Database error" if an error occured) |
| xml | XML (An XML 1.0 document containing an url entry with two entities original (the original URI), arunaurl (the ArunaURL) or a url entry with the two entities original (the original URI),error (Always Database error)). |
| html | HTTP redirect (An HTTP redirect to a web page which displays the ArunaURL) |
| All others | Text (A text/plain reply containing the ArunaURL string |
Examples:
- lynx -source http://arunaurl.com/create_url.php?url= http%3A%2F%2Fwww.arunalabs.com%2F&type=text will return the string for the ArunaURL going to http://www.arunalabs.com/
- Surfing to http://arunaurl.com/create_url.php?url=http%3A%2F%2F
www.arunalabs.com%2F&type=html will give the same action as if you entered http://www.arunalabs.com/ via the ArunaURL webpage