Create WgApi.php