update ApiHelper.php