Update API example in README