ZeroLink Logo
home | api | tos | about | contact

API Documentation of ZeroLink

ZeroLink exposes its data via an Application Programming Interface (API), so developers can interact in a programmatic way with the ZeroLink website. This document is the official reference for that functionality.


/v1/shorten.php

For a long URL, /v1/shorten.php encodes a URL and returns a short one.

Parameters

Notes

Output

Examples



/v1/expand.php

For a hash, /v1/expand.php return info about longUrl.

Parameters

Output

Examples




API use example

View here a php wraper class for zerolink api and an example of use ( can be downloaded from here ). Here can be viewed the result of run of the script.

<?php
	$zl = new ZeroLink( );
	
	print_r( 
		$zl->shorten( 'http://example.com/' )
	);
	print "<hr>";
	
	print_r( 
		$zl->expand( 'WH' )
	);
?>
ZeroLink ver 2.0.3 | © 2011 by andrei husanu