I have recently thought of a new project, which is simply a URL shortener, but I plan to add more feature to its API in the future. The website is called FFS (wanted to make it catchy and easy to remember.)
Here's a simple PHP example on how to use the API
The documentation for the API can be found
I wrote the code on my mobile so it might have errors. Please tell me if it does, thanks.
You must be registered for see links
Here's a simple PHP example on how to use the API
PHP:
function shorten($url) {
$call = file_get_contents('http://api.ffs.im/?url=' . $url);
$call = json_decode($call, true);
if( $call['result'] !== 0 ) {
return $call['result'];
} else {
return false;
}
}
You must be registered for see links
.I wrote the code on my mobile so it might have errors. Please tell me if it does, thanks.
Last edited: