Simplify your links

Web Service
Url Sending method Output Type Limit
http://uoou.ir/api Post Json 150 Links per day

Sending Parameters to this Web Service
Parameter Description Required?
token You'll Receive a token after you have set up an account Yes
url Original link(with urlencoder) Yes
password Set Password No

Output
Parameter Description Type
status Request Result integer
shortened Short link string
admin Management link string
qr Qr Code Link string

Status Code
Code Description
1 Successful
0 Your account is disabled
-1 Link is not allowed
-2 Internal error
-3 Overflow

Sample code - PHP :

<?php
/////////////////////////////////////////
$token= "Your Token";
$url= "https://ishahin.biz";
/////////////////////////////////////////
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://uoou.ir/api");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query(array('token' => $token,'url' => urlencode($url))));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
curl_close ($ch);
$output = json_decode($output);
if($output->status == 1)
{
	echo 'Generated Link :'.$output->shortened;
	echo 'admin Link :'.$output->admin;
	echo 'QrCode Link :'.$output->qr;
}
else
	echo 'error code : '.$output->status;
?>