API

登入後您的會顯示 API KEY 在本畫面。

製作新的短網址必須使用 HTTP POST Mehod 傳入資料給 Web Service

API Web Service Url
http://zzb.bz/panel/api/create/
NAMEVALUE
key你的 API Key
url想要縮短的 url

製作成功後會回傳 zzb.bz 短網址的 URL ,程式碼 (以 PHP 為例)

	
	$url = "http://zzb.bz/panel/api/create/";
	$key = "XXXX"; // 你的 API Key
	$url = "http://www.example.com";  // 你想縮短的網址

	$array = array('key'=>$key, 'url'=>$url);
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, TRUE);
	curl_setopt($ch, CURLOPT_POSTFIELDS , http_build_query($array));
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response;