Fix incorrect api call in readme code sample.