API - Minimize
- (GET) http://fy.to/api.php?url={long_url}
$minimize_url = file_get_contents('http://fy.to/api.php?url=http://www.long_url.com');
API - Expand
- (GET) http://fy.to/api.php?key={key}
$long_url = file_get_contents('http://fy.to/api.php?key=w');
API - Stats
- (GET) http://fy.to/api.php?stats={key}&since={date}
$stats = json_decode(file_get_contents('http://fy.to/api.php?stats=1&since=Yesterday'));
- (GET) http://fy.to/api.php?stats={key}
$stats = json_decode(file_get_contents('http://fy.to/api.php?stats=1'));