Update class-edd-api.php