Update myapi.class.php