Fix API example in readme