Add API example to README