* API

Your API key Information

API Key please login to get your API KEY.

Process your data via HTTP POST Mehod to the web service, and it will return the result in JSON format.

API Web Service Urlhttps://zzb.bz/panel/api/create/
NAMEVALUE
keyyour api key
urlyour huge url
password (* optional)the password to protect the short url, max lengh is 12 chars
description (* optional)the description of the short url, max lengh is 256 chars
		

/* example code in php. */

$url = "https://zzb.bz/panel/api/create/";

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, TRUE);

$param_key = "XXXX"; // your api key
$param_url = "http://www.example.com";  // your huge url
$param_password = "";
$param_description = "";

$array = array(
        'key'         => $param_key,
        'url'         => $param_url,
        'password'    => $param_password,
        'description' => $param_description
    );

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;

		
	
		
HTTP Response Example:

success:
{"Status":"Success","ApiKey":"XXXXX","Result":"http:\/\/zzb.bz\/7n7EW"}

failed:
{"Status":"Failed","ApiKey":"XXXXX","Result":"The URL field is required. \n Invalid api key."}