slink.be


Our API is simple to use. To receive an API Key, you may contact us at hello@slink.be. The following instructions have been prepared to help you figure out how to use it.

Once you've received an API Key from us, you can send a POST or GET request to this page and specify the following:


Example in PHP; retrieving the time a short link was last visited:

<?php function get_content($url) {
$ch curl_init();
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt($chCURLOPT_URL$url);
curl_setopt($ch,CURLOPT_USERAGENT,'DESCRIPTION OF SCRIPT');
$data curl_exec($ch);
curl_close($ch);
return 
$data;
}
$content get_content("http://slink.be/api.php?key=KEY&link=LINK&type=lastvisit"); 
/* $content will display the timestamp of the last visit to the specified link */
echo $content?>
1