Test api.php script