gapi.class.php