Create myapi.class.php