How to use mangk.us URL shortener API on your PHP application

There are two Basic functions in api.php :

"short" and "url"

example :

+ short
URL : http://mangk.us/api.php?short=http://mangk.us/panggi
result : http://twitter.com/panggi
+ url
URL : http://mangk.us/api.php?url=http://opensecuritylab.org
result : http://mangk.us/2

With that basic functions on mangk.us you can make a function on your PHP application , but remember not to use URL encoding when you send the URL to mangk.us .

Code :

$request = 'http://mangk.us/api.php?url=' . $url;
$result = processCurl( $request );
if ($result) return $result;
else return false;

It's not a full code and you have to develop it by yourself .

Panggi Libersa Jasri Akadol

Panggi Libersa Jasri Akadol

I am an open minded person, totally platform agnostic and believe in using the right tool for the right job

Subscribe...

Follow via RSS

Archive

2011 (12)
2010 (56)

Contributors