Rename api.class to api.class.php