Omani.ac is a URL shortener. Really long urls can be substituted by a shorter one which forwards browers to the original web address.
Please note that illegal or offensive URLs will be removed.
or
Application Programming Interface (API)
Quick start:
If your system has curl (and it should!), you’ve already got a great way to poke around the API. Here are some examples:
curl -d url="http://[some domain]/[some page]" http://omani.ac/api/shorten.xmlcurl -d ref="http://omani.ac/[some ref]" http://omani.ac/api/lookup.xmlExamples:
Here's an example php script available for download. (Rename from .txt to .php.)
Requests:
Methods are returned in xml format
<?xml version="1.0" encoding="UTF-8"?>
<omaniac>
<status>[OK or Error]</status>
<code>[status code]</code>
<url>(Only if status is OK) [some url]</url>
</omaniac>
Status codes
Methods:
Shorten - Creates a shortened forwarding url.
URL: http://omani.ac/api/shorten.xml
Format: xml
Parameters:
Lookup - Looks up the destination of a shortened forwarding url.
URL: http://omani.ac/api/lookup.xml
Format: xml
Parameters: