URL Format: http://zxc9.com?api=[You API Key]&url=[Your Long URL]
To use zxc9.com web service API, you must be a registered user
with zxc9.com
PHP Code
Step 1: Download PHP code Download
Step 2: Upzip the downloaded File
Step 3: Include the api.php in to your code using below code
< ?php include("api.php");?>
Step 4:Use the below code to generate short URL
< ?php
$surl=getShortCode("http://zxc9.com/api.php?api=[API
KEY]&url=[Long URL]");
?>
Note: Replace [API KEY] with your generated API Key
Replace [Long URL] with your long URL
JSP Code
Step 1: Download JSP code Download
Step 2: Upzip the downloaded File
Step 3: Include the api.jsp in to your JSP page using below code
<%@include file="zxc9api.jsp"%>
Step 4:Use the below code to generate short URL
<%
String url="http://zxc9.com/api.php?api=[API
KEY]&url=http://www.example.com";
String surl=shortURL(url);
%>";?>
Note: Replace [API KEY] with your generated API Key
Replace http://www.example.com with long URL