Add API example to readme