fixed examples on api.php