Update README.md example for latest API changes.